GenerationOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Work limits for seeded board generation and its no-guess check. attempts is the number of random layouts tried
first; repairs is how many single-mine moves the repair stage may try on the closest of them (0, or repair: false, keeps the 0.2 behaviour of giving up after the attempts); enumerate switches the exact small-frontier check.
インポート
import type { GenerationOptions } from "@johnmorrisdotca/jirai";
定義
type GenerationOptions = {
attempts?: number;
repairs?: number;
repair?: boolean;
enumerate?: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
attempts (省略可) | number | undefined | |
repairs (省略可) | number | undefined | |
repair (省略可) | boolean | undefined | |
enumerate (省略可) | boolean | undefined |
例
import type { GenerationOptions } from "@johnmorrisdotca/jirai";
const value: GenerationOptions = {attempts:1,repair:false,enumerate:true};
console.log(value);{ attempts: 1, repair: false, enumerate: true }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。