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 · Where every tie sits

roundNamefunction

The name of a round that has remaining teams left in it, counting from the final: Final, Semi-finals, Quarter-finals, Round of 16…

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets/presets, @johnmorrisdotca/taisen-brackets

Definition

function roundName(remaining: number): string

Parameters

NameTypeDescription
remainingnumber

How many teams are left in the round: 2 is the final, 4 the semi-finals, 8 the quarter-finals.

Returns

string

The round's English name.

Examples

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

console.log([2, 4, 8, 16].map((teams) => roundName(teams)));
[ 'Final', 'Semi-finals', 'Quarter-finals', 'Round of 16' ]

What it prints (run when this page was built)

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