MEIKYUU_LEAST定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The least a maze must have to be a level at all, wherever it is in a list (isTooEasy): the straight guess draws at least four cells it did
not need, is wrong at two forks or more, and the way has three places to choose, three wrong branches and four dead ends. Below any of these a
maze is pointed at the goal and walked.
インポート
import { MEIKYUU_LEAST } from "@johnmorrisdotca/meikyuu";
定義
const MEIKYUU_LEAST: { readonly waste: 4; readonly traps: 2; readonly decisions: 3; readonly branches: 3; readonly deadEnds: 4; } = { waste: 4, traps: 2, decisions: 3, branches: 3, deadEnds: 4 } as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
waste | 4 | |
traps | 2 | |
decisions | 3 | |
branches | 3 | |
deadEnds | 4 |
例
import { MEIKYUU_LEAST } from "@johnmorrisdotca/meikyuu";
console.log(MEIKYUU_LEAST);{ waste: 4, traps: 2, decisions: 3, branches: 3, deadEnds: 4 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。