リファレンス
四近傍の規則
import { … } from "@johnmorrisdotca/jirai/orthogonal";
最小化と gzip 圧縮をしたサイズは 6.6 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
decodeOrthogonalGame | 関数 | Restores only version 2 orthogonal progress records. |
encodeOrthogonalGame | 関数 | Encodes an orthogonal game with an explicit variant marker and version 2. |
makeOrthogonalBoard | 関数 | Deals a board whose clues count only up, down, left and right. |
newOrthogonalGame | 関数 | Starts a game under four-neighbour rules. |
ORTHOGONAL_VARIANT | 定数 | Identifies the four-neighbour rules and progress-code format. |
orthogonalHint | 関数 | Gives a clue-only deduction; flags remain notes and cannot influence the result. |
orthogonalNeighbours | 関数 | Returns the adjacent cells under the orthogonal rules. |
OrthogonalSettings | 型 | Settings accepted by the four-neighbour-specific helpers. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。