Reference · Draw a bracket, a table or a road to the final
judoBracketfunction
The contests of one judo weight category for any number of athletes, seeded in the standard way (the top seeds have the byes when the number is
not a power of two). The athlete drawn first is white and the second blue (Matchup.sides: first white).
With repechage (IJF Sport and Organisation Rules, 2.5.2 "Quarter-final Repechage", the system of the Olympic Games): the athletes are in two tables
and an elimination produces two finalists. "The athletes defeated in the quarter-final will compete in two (2) repechage contests. The winners of each of
these two (2) repechage contests will compete in bronze medal contests against the loser of the semi-final contest of the respective opposite table.
The winners (2) of those contests are placed third." The repechage and bronze contests are stage: "repechage" and stage: "bronze" matchups, fed by
the losers of the tree's, and are drawn under it. Needs eight athletes or more. With direct, there are no such contests: the two losing semi-finalists are
the bronze medallists (judoPodium).
Double repechage and full repechage (2.5.3 and 2.5.4) are not drawn: their pools are laid out in the rules' Appendix G charts.
Import it
import { judoBracket } from "@johnmorrisdotca/taisen-brackets";
Definition
function judoBracket(athletes: readonly Team[], options?: JudoBracketOptions): { teams: Team[]; matchups: Matchup[]; }
Parameters
| Name | Type | Description |
|---|---|---|
athletes | readonly Team[] | The athletes as teams, best seed first. |
options (optional) | JudoBracketOptions | The system and a prefix for the ties' ids. |
Returns
{ teams: Team[]; matchups: Matchup[]; }
The athletes and the matchups, none played yet, ready for drawBracket.
Examples
import { judoBracket } from "@johnmorrisdotca/taisen-brackets";
const athletes = ["Haru", "Marc", "Levan", "Min", "Rafa", "Jasur", "Tom", "Joris"].map((name, i) => ({ id: name, name, seed: i + 1 }));
const { matchups } = judoBracket(athletes);
console.log(matchups.length, matchups.filter((m) => m.stage === "bronze").length);11 2What it prints (run when this page was built)