Reference · Draw a bracket, a table or a road to the final
JudoPodiumtype
The medallists of a judo tournament, as far as it has been fought.
Import it
import type { JudoPodium } from "@johnmorrisdotca/taisen-brackets";
Definition
interface JudoPodium {
gold: Team | null;
silver: Team | null;
bronze: Team[];
}
Members
| Name | Type | Description |
|---|---|---|
gold | Team | null | |
silver | Team | null | |
bronze | Team[] | The two bronze medallists: the winners of the bronze medal contests, or the losing semi-finalists of a direct knockout. Only those decided. |
Examples
import { judoPodium, type JudoPodium, advanceWinners, judoBracket } from "@johnmorrisdotca/taisen-brackets";
const { matchups } = judoBracket(["Haru", "Marc", "Levan", "Min"].map((name) => ({ id: name, name })));
const podium: JudoPodium = judoPodium(advanceWinners(matchups));
console.log(podium.gold, podium.bronze.length);null 0What it prints (run when this page was built)