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
| Name | Type | Description |
|---|---|---|
size | number | 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)