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

roundNamesForfunction

The generic names of count rounds, first round first: roundNamesFor(3) is Quarter-finals, Semi-finals, Final.

Import it

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

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

Definition

function roundNamesFor(count: number): string[]

Parameters

NameTypeDescription
countnumber

How many rounds the bracket has.

Returns

string[]

The names, in order.

Examples

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

console.log(roundNamesFor(3));
[ 'Quarter-finals', 'Semi-finals', 'Final' ]

What it prints (run when this page was built)

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