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

judoPodiumfunction

The gold, silver and two bronze medals of a bracket (matchups, input or layout), from the final, the bronze medal contests or the semi-finals.

Import it

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

Definition

function judoPodium(input: BracketLayout | readonly Matchup[] | BracketInput): JudoPodium

Parameters

NameTypeDescription
inputreadonly Matchup[] | BracketInput | BracketLayout

The matchups, a { matchups, teams } or a layout.

Returns

JudoPodium

The podium; a place is null until its contest is played.

Examples

import { advanceWinners, judoBracket, judoPodium } from "@johnmorrisdotca/taisen-brackets";

const { matchups } = judoBracket(["Haru", "Marc", "Levan", "Min"].map((name) => ({ id: name, name })));
console.log(judoPodium(advanceWinners(matchups)).gold);
null

What it prints (run when this page was built)

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