リファレンス
へやわけの規則
import { … } from "@johnmorrisdotca/kazu/heyawake";
最小化と gzip 圧縮をしたサイズは 7.0 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Heyawake has its own room model alongside Kazu's number puzzles.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
checkHeyawake | 関数 | Validate a Heyawake answer against the printed clues and complete native rules. |
checkRoomSpans | 関数 | Add unshaded straight-line room-span violations to the supplied error set. |
decodeHeyawake | 関数 | Read a native saved Heyawake game, or null for invalid board data or progress. |
drawHeyawake | 関数 | Render the Heyawake board and supplied current state as native SVG text. |
encodeHeyawake | 関数 | Encode the Heyawake board and current game as native resumable text. |
generateHeyawake | 関数 | Generate a seeded Heyawake puzzle with a verified unique answer; unsupported inputs or exhausted attempts throw. |
HEYAWAKE_GENERATOR_MOST_CELLS | 定数 | The maximum number of cells accepted by the Heyawake generator. |
HEYAWAKE_LEVELS | 定数 | The native Heyawake generation difficulty tiers. |
HEYAWAKE_MOST_ATTEMPTS | 定数 | The native Heyawake generation-attempt limit. |
HEYAWAKE_MOST_NODES | 定数 | The native Heyawake search-node budget. |
HEYAWAKE_MOST_SIDE | 定数 | The maximum supported Heyawake board dimension. |
HEYAWAKE_PLAY_STYLE | 定数 | Scoped native Heyawake board and player CSS. |
HeyawakeAppearance | 型 | Language, material and marks for a native Heyawake board. |
HeyawakeBoard | 型 | Heyawake dimensions and printed clues in their native row-major representation. |
heyawakeCells | 関数 | Read room cells, or null for a room outside this board. |
HeyawakeCheck | 型 | The Heyawake completion result and cells that violate its native rules. |
HeyawakeDrawOptions | 型 | Current Heyawake marks or entries, selection, errors and native SVG appearance choices. |
heyawakeFinished | 関数 | Whether this Heyawake game satisfies its complete native rules. |
HeyawakeGame | 型 | The immutable Heyawake board, current entries or marks, undo history and assistance state. |
HeyawakeLevel | 型 | A native difficulty tier for generated Heyawake puzzles. |
HeyawakeMount | 型 | The mounted Heyawake game and progress, native controls and cleanup handle. |
HeyawakeMountOptions | 型 | The initial Heyawake board, native progress, appearance and host event callbacks. |
heyawakeNeighbours | 関数 | Read orthogonally adjacent Heyawake cells. |
HeyawakePuzzle | 型 | A seeded Heyawake board with its verified solution and native difficulty tier. |
HeyawakeRoom | 型 | A rectangular room and its optional required black-cell count. |
HeyawakeSolve | 型 | A bounded Heyawake solve result: answer count, first solution, node work and whether the search completed. |
heyawakeWords | 関数 | Read the native English or Japanese Heyawake labels. |
hintHeyawake | 関数 | Find a native Heyawake hint, or null when no actionable hint is available. |
isHeyawakeBoard | 関数 | Whether the value has valid native Heyawake dimensions, clues and data. |
mountHeyawake | 関数 | Mount the native Heyawake player in a host element and return its cleanup and control handle. |
newHeyawake | 関数 | Create the initial immutable Heyawake game from a valid board. |
restartHeyawake | 関数 | Return the Heyawake game reset to its initial entries or marks. |
roomForCell | 関数 | Read the containing room index for each Heyawake cell. |
setHeyawakeCell | 関数 | Apply the requested native Heyawake entry or mark to a new immutable game; invalid or fixed targets stay unchanged. |
solveHeyawake | 関数 | Search for Heyawake answers up to the solution and node limits; completion distinguishes a proved result from exhausted work. |
undoHeyawake | 関数 | Return the Heyawake game with its previous marks or entries restored, or unchanged when there is no undo history. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。