リファレンス
ヤジリンの規則
import { … } from "@johnmorrisdotca/kazu/yajilin";
最小化と gzip 圧縮をしたサイズは 3.2 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
checkYajilin | 関数 | Validate a Yajilin answer against the printed clues and complete native rules. |
decodeYajilin | 関数 | Read a native saved Yajilin game, or null for invalid board data or progress. |
encodeYajilin | 関数 | Encode the Yajilin board and current game as native resumable text. |
generateYajilin | 関数 | Seeded original 5×5 families, accepted only after a completed uniqueness proof. |
hintYajilin | 関数 | Find a native Yajilin hint, or null when no actionable hint is available. |
isYajilinBoard | 関数 | Whether the value has valid native Yajilin dimensions, clues and data. |
newYajilin | 関数 | Create the initial immutable Yajilin game from a valid board. |
restartYajilin | 関数 | Return the Yajilin game reset to its initial entries or marks. |
solveYajilin | 関数 | Counts public shade patterns whose remaining cells form the single required loop. |
toggleYajilinEdge | 関数 | Apply the requested native Yajilin entry or mark to a new immutable game; invalid or fixed targets stay unchanged. |
toggleYajilinShade | 関数 | Apply the requested native Yajilin entry or mark to a new immutable game; invalid or fixed targets stay unchanged. |
undoYajilin | 関数 | Return the Yajilin game with its previous marks or entries restored, or unchanged when there is no undo history. |
YAJILIN_NODE_BUDGET | 定数 | The native Yajilin search-node budget. |
YAJILIN_SIZES | 定数 | The supported Yajilin board sizes. |
YajilinBoard | 型 | Yajilin dimensions and printed clues in their native row-major representation. |
YajilinCheck | 型 | The Yajilin completion result and cells that violate its native rules. |
YajilinClue | 型 | An arrow direction and the required number of shaded cells in its ray. |
YajilinDirection | 型 | The direction an arrow clue looks along a row or column. |
YajilinDrawOptions | 型 | Current Yajilin marks or entries, selection, errors and native SVG appearance choices. |
yajilinEdgeCount | 関数 | Count native Yajilin edges. |
YajilinGame | 型 | The immutable Yajilin board, current entries or marks, undo history and assistance state. |
YajilinMount | 型 | The mounted Yajilin game and progress, native controls and cleanup handle. |
YajilinMountOptions | 型 | The initial Yajilin board, native progress, appearance and host event callbacks. |
yajilinNeighbors | 関数 | Read adjacent Yajilin cells and the joining edge. |
YajilinPuzzle | 型 | A seeded Yajilin board with its verified solution. |
yajilinRay | 関数 | Read cells in the arrow’s indicated direction, excluding its own clue cell. |
YajilinSolution | 型 | The solved Yajilin shading and loop edges. |
YajilinSolve | 型 | A bounded Yajilin solve result: answer count, first solution, node work and whether the search completed. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。