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

RoadFinaltype

The final, when it has been played.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

interface RoadFinal {
    score: RoadScore;
    decidedBy?: RoadDecided;
    pens?: readonly [
        number | string,
        number | string
    ];
    note?: string;
}

Members

NameTypeDescription
scoreRoadScore

The score, the first finalist's first.

decidedBy (optional)RoadDecided | undefined
pens (optional)readonly [string | number, string | number] | undefined

The shoot-out, the first finalist's first.

note (optional)string | undefined

Examples

import { roadToFinal, type RoadFinal } from "@johnmorrisdotca/taisen-brackets";

const final: RoadFinal = { score: [1, 2], decidedBy: "aet" };
const chart = roadToFinal([{ name: "Owls", path: [] }, { name: "Gulls", path: [] }], { final });
console.log(chart.totals.champion);
Gulls

What it prints (run when this page was built)

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