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

JudoQueueContesttype

One contest of a mat's queue: its number ("G-24", 24) and the two athletes, and optionally the weight class and the round (for a caption).

Import it

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

Definition

interface JudoQueueContest {
    number: string | number;
    white: JudoAthlete;
    blue: JudoAthlete;
}

Members

NameTypeDescription
numberstring | number
whiteJudoAthlete
blueJudoAthlete

Examples

import { judoMatQueue, type JudoQueueContest } from "@johnmorrisdotca/taisen-brackets";

const next: JudoQueueContest = { number: "G-1", white: { name: "Daiki Hoshino", code: "JPN" }, blue: { name: "Mathis Roussel", code: "FRA" } };
console.log(judoMatQueue({ mat: 1, contests: [next] }).includes("G-1"));
true

What it prints (run when this page was built)

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