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

standardSeedsfunction

The seeds in the order a standard bracket lists them, so that 1 meets 2 only in the final and the top seeds meet the bottom ones first: standardSeeds(8) is [1, 8, 4, 5, 2, 7, 3, 6]. size is rounded up to a power of two.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

function standardSeeds(size: number): number[]

Parameters

NameTypeDescription
sizenumber

The number of places; rounded up to a power of two.

Returns

number[]

The seeds, in the order of the first round's places.

Examples

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

console.log(standardSeeds(8));
[
  1, 8, 4, 5,
  2, 7, 3, 6
]

What it prints (run when this page was built)

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