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

JudoMattype

One mat: its number or name, its colour (any CSS colour that a hex code gives, default by position) and its contests in the order they will be fought.

Import it

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

Definition

interface JudoMat {
    mat: string | number;
    color?: string;
    contests: readonly JudoQueueContest[];
}

Members

NameTypeDescription
matstring | number
color (optional)string | undefined
contestsreadonly JudoQueueContest[]

Examples

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

const mat: JudoMat = { mat: 2, color: "#0b6fb8", contests: [{ number: "G-2", white: { name: "Levan M.", code: "GEO" }, blue: { name: "Min-jae Seong", code: "KOR" } }] };
console.log(judoMatQueue(mat).includes("#0b6fb8"));
true

What it prints (run when this page was built)

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