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

RoadGroupMatchtype

One match of the group stage: as a knockout match, without a round.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

type RoadGroupMatch = Omit<RoadMatch, "round"> & {
    round?: string;
};

Members

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

The shoot-out, the finalist's first: [4, 3].

note (optional)string | undefined

Words to write under the score in place of FT, AET or the shoot-out (Game 6, in 7). An empty text writes nothing.

scoreRoadScore

The score, the finalist's first: [2, 1] is a 2-1 win.

opponentRoadTeam

The team it played: its name, abbreviation, mark or flag, and color.

decidedBy (optional)RoadDecided | undefined

How it was decided: ft by default, or pens when pens is given. Written under the score: FT, AET, or the shoot-out.

homeFirst (optional)boolean | undefined

The order of the pair, left to right: true the finalist first, false its opponent first. By default the finalist is at the outer edge of its side, so that the two paths mirror each other.

round (optional)string | undefined

Examples

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

const opener: RoadGroupMatch = { opponent: { name: "Summit Peaks", abbr: "SMT" }, score: [0, 0] };
console.log(opener.score);
[ 0, 0 ]

What it prints (run when this page was built)

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