standardSeeds関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { standardSeeds } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
function standardSeeds(size: number): number[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The number of places; rounded up to a power of two. |
戻り値
number[]
The seeds, in the order of the first round's places.
例
import { standardSeeds } from "@johnmorrisdotca/taisen-brackets";
console.log(standardSeeds(8));[
1, 8, 4, 5,
2, 7, 3, 6
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。