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

describeJudoCardfunction

The contest card as a sentence, the drawing's description.

Import it

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

Definition

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

Parameters

NameTypeDescription
contestJudoCardContest

The contest.

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

The language and the words.

Returns

string

The description.

Examples

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

console.log(describeJudoCard({ white: { name: "Daiki Hoshino" }, blue: { name: "Mathis Roussel" }, weight: "Men -66 kg" }));
Men -66 kg. white: Daiki Hoshino. blue: Mathis Roussel.

What it prints (run when this page was built)

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