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

RankingMeetingtype

One previous meeting of the two athletes.

Import it

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

Definition

interface RankingMeeting {
    date?: string;
    event?: string;
    round?: string;
    winner?: 0 | 1 | null;
    result?: string;
}

Members

NameTypeDescription
date (optional)string | undefined

The date, as an ISO date (2026-05-17, written the language's way) or any text.

event (optional)string | undefined

The event ("Provincial Championships") and the round ("Final", "Semi-final").

round (optional)string | undefined
winner (optional)0 | 1 | null | undefined

Who won: 0 for the first athlete, 1 for the second, null or left out for a draw or no result.

result (optional)string | undefined

How it ended, as it is to be written ("ippon · 1:12", "7–2").

Examples

import { matchupRecord, type RankingMeeting } from "@johnmorrisdotca/taisen-brackets";

const meetings: RankingMeeting[] = [
  { date: "2026-09-13", event: "Fall Open", round: "Semi-final", winner: 0, result: "ippon · 2:11" },
  { date: "2026-05-17", event: "Spring Classic", round: "Final", winner: 1, result: "waza-ari · golden score" },
];
console.log(matchupRecord(meetings));
[ 1, 1 ]

What it prints (run when this page was built)

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