HUGE_SIZES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The huge fields: four times the area of a 16×16 (the medium level), 1,024 to 1,152 squares, for a long solve. The same
share of mines as a level, see hugeSettings. They are dealt, proved and drawn like any other field: a no-guess deal takes
a few milliseconds to a tenth of a second here, and 2,400 squares is the most validSettings accepts.
インポート
import { HUGE_SIZES } from "@johnmorrisdotca/jirai";
定義
const HUGE_SIZES: readonly [{ readonly width: 32; readonly height: 32; }, { readonly width: 48; readonly height: 24; }, { readonly width: 24; readonly height: 48; }] = [{ width: 32, height: 32 }, { width: 48, height: 24 }, { width: 24, height: 48 }] as const satisfies readonly {
width: number;
height: number;
}[]
例
import { HUGE_SIZES } from "@johnmorrisdotca/jirai";
console.log(HUGE_SIZES);[
{ width: 32, height: 32 },
{ width: 48, height: 24 },
{ width: 24, height: 48 }
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。