Jirai documentation
Jirai 地雷 — Minesweeper with no-guess boards
Deal seeded minefields, prove hints from visible clues and mount square, orthogonal, hexagonal or wraparound boards.
Install
npm install @johnmorrisdotca/jirai
Start here
Entry points
| Import it | What it is | Size |
|---|---|---|
@johnmorrisdotca/Four-neighbour rules · 8 exports | 6.6 kB | |
@johnmorrisdotca/Native Minesweeper player · 4 exports | 12.2 kB | |
@johnmorrisdotca/Visible board models · 5 exports | 3.9 kB | |
@johnmorrisdotca/Minesweeper element · 5 exports | 14.6 kB | |
@johnmorrisdotca/Register Minesweeper · 5 exports | 14.6 kB | |
@johnmorrisdotca/React player · 1 exports | 23.5 kB | |
@johnmorrisdotca/Rules, generation and deductions · 70 exports | Jirai 地雷: the rules and deductions, plain functions over plain data. | 7.8 kB |
Guides
How-to
- Select topology, shapes and levelsKeep row-major active-cell indices and validate topology-specific settings.
- Generate verified no-guess fieldsKeep seed, opening and budgets explicit; generation failure is never an unproved board.
- Prove hints from visible cluesUse VisibleGame and distinguish flags, proof and contradictions.
- Save progress and preserve variantsReplay validated moves and retain orthogonal version-2 markers.
- Share a UTC daily fieldPin a real date, topology, settings and opening for reproducible daily play.
- Draw a model or mount a React hostKeep visible presentation data separate from game answers and mount ownership.
- Embed and control a native boardUse native mounts, events, reflected settings and cleanup.