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 · The road to the final

RoadScoretype

A match's score from the finalist's side: [for, against] (numbers, or text such as a series' 4), or one text, "4-2", that is split at its dash.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

type RoadScore = readonly [
    number | string,
    number | string
] | string;

Examples

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

const game: RoadScore = [2, 1];
const series: RoadScore = "4-2";
console.log(game, series);
[ 2, 1 ] 4-2

What it prints (run when this page was built)

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