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

matchupRecordfunction

The record of the meetings: how many each athlete won. A draw or a meeting with no winner is in neither.

Import it

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

Definition

function matchupRecord(meetings?: readonly RankingMeeting[]): [number, number]

Parameters

NameTypeDescription
meetings (optional)readonly RankingMeeting[]

The meetings.

Returns

[number, number]

The wins of the first athlete and of the second.

Examples

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

console.log(matchupRecord([
  { 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" },
]).join("–"));
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.