Reference
Four-neighbour rules
import { … } from "@johnmorrisdotca/jirai/orthogonal";
6.6 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
decodeOrthogonalGame | function | Restores only version 2 orthogonal progress records. |
encodeOrthogonalGame | function | Encodes an orthogonal game with an explicit variant marker and version 2. |
makeOrthogonalBoard | function | Deals a board whose clues count only up, down, left and right. |
newOrthogonalGame | function | Starts a game under four-neighbour rules. |
ORTHOGONAL_VARIANT | constant | Identifies the four-neighbour rules and progress-code format. |
orthogonalHint | function | Gives a clue-only deduction; flags remain notes and cannot influence the result. |
orthogonalNeighbours | function | Returns the adjacent cells under the orthogonal rules. |
OrthogonalSettings | type | Settings accepted by the four-neighbour-specific helpers. |