Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Draw a bracket, a table or a road to the final

describeJudoContestfunction

The words of the state in a sentence, for the drawing's description.

Import it

import { describeJudoContest } from "@johnmorrisdotca/taisen-brackets";

Definition

function describeJudoContest(contest: JudoContest, options?: Pick<JudoBoardOptions, "locale" | "words">): string

Parameters

NameTypeDescription
contestJudoContest

The contest.

options (optional)Pick<JudoBoardOptions, "locale" | "words">

The language and the words.

Returns

string

The description.

Examples

import { describeJudoContest } from "@johnmorrisdotca/taisen-brackets";

console.log(describeJudoContest({
  white: { name: "Daiki Hoshino", code: "JPN" },
  blue: { name: "Mathis Roussel", code: "FRA" },
  sides: [{ wazaAri: 1, shido: 1 }, { yuko: 2, shido: 2 }],
  clock: "2:14",
  weight: "Men -66 kg",
  round: "Final",
}));
Men -66 kg. Final. white: Daiki Hoshino (JPN), waza-ari, Shido: 1 shido. blue: Mathis Roussel (FRA), 2 yuko, Shido: 2 shido. 2:14.

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.