TSUNAGI_SIZES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
TSUNAGI'S LEVELS, COUNTED: which sizes there are, how many levels each has,
and which of them a player has opened. The levels themselves are data, each
size its own import (@johnmorrisdotca/tsunagi/levels-7, or every size
through @johnmorrisdotca/tsunagi/levels), so nothing here carries a board.
A level is not made from a seed: level 12 at 7×7 is one board for every player on every day, so a time on it can be compared with anybody's.
インポート
import { TSUNAGI_SIZES } from "@johnmorrisdotca/tsunagi/levels";
ほかのエクスポート元: @johnmorrisdotca/tsunagi
定義
const TSUNAGI_SIZES: readonly [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 25, 30] = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 25, 30] as const
例
import { TSUNAGI_SIZES } from "@johnmorrisdotca/tsunagi/levels";
console.log(TSUNAGI_SIZES);[
4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15,
20, 25, 30
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。