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);3What it prints (run when this page was built)