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

JudoBracketOptionstype

What judoBracket can be told: the system and a prefix for the ties' ids.

Import it

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

Definition

interface JudoBracketOptions {
    system?: JudoSystem;
    prefix?: string;
}

Members

NameTypeDescription
system (optional)JudoSystem | undefined

Default repechage for eight athletes or more, else direct.

prefix (optional)string | undefined

The ids of the contests are ${prefix}1-1, ${prefix}1-2… (round, then place in the round), ${prefix}rep-1, ${prefix}bronze-1. Default "J".

Examples

import { judoBracket, type JudoBracketOptions } from "@johnmorrisdotca/taisen-brackets";

const options: JudoBracketOptions = { system: "repechage", prefix: "m66" };
console.log(judoBracket(["Haru", "Marc", "Levan", "Min", "Rafa", "Jasur", "Tom", "Joris"].map((name) => ({ id: name, name })), options).matchups.length);
11

What it prints (run when this page was built)

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