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

JudoSystemtype

How a judo tournament is drawn: repechage (the IJF's quarter-final repechage, with its two bronze medal contests), or direct (a direct knockout in which both semi-final losers are bronze medallists).

Import it

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

Definition

type JudoSystem = "repechage" | "direct";

Examples

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

const system: JudoSystem = "direct";
console.log(judoBracket(["A", "B", "C", "D"].map((name) => ({ id: name, name })), { system }).matchups.length);
3

What it prints (run when this page was built)

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