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

RankingCardtype

A category and its number one.

Import it

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

Definition

interface RankingCard {
    category: string;
    entry: RankingEntry;
}

Members

NameTypeDescription
categorystring

The category as it is written ("-57 kg", "U18 · Men -60 kg"; rankingCategoryLabel writes one).

entryRankingEntry

Examples

import { rankingNumberOnes, type RankingCard } from "@johnmorrisdotca/taisen-brackets";

const card: RankingCard = { category: "-60 kg", entry: { name: { surname: "Nakamura", given: "Kenji" }, points: 1240 } };
console.log(rankingNumberOnes({ cards: [card] }).includes("NAKAMURA Kenji"));
true

What it prints (run when this page was built)

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