Run demo
Run locally: cd projects/minesweep && pnpm install && pnpm sigil:compile && pnpm dev
Sigil Minesweep
This project follows the same integration pattern as the Todo app:
src/minesweepDomain.lib.sigilowns the board state transitionstests/minesweepDomain.sigilkeeps the core rules checked in Sigilweb/src/generated/minesweep-domain.tsis generated for the browser appweb/src/bridge.tsxowns the React UI and browser event wiring
Current status:
- browser-runnable demo published under
/projects/sigil-minesweep/demo/ - randomized
6x6board on every load and restart with6mines by default - zero-adjacent reveals cascade open the surrounding safe region
- source-first domain logic with room to grow into a richer game later
Run
cd projects/minesweep
pnpm install
pnpm dev
cargo run -q -p sigil-cli --manifest-path ../../language/compiler/Cargo.toml -- test tests
pnpm dev regenerates web/src/generated/minesweep-domain.ts before starting Vite.
Build the website demo bundle
cd projects/minesweep
pnpm install
SIGIL_MINESWEEP_BASE=/projects/sigil-minesweep/demo/ pnpm build
CLI preview
If you only want the textual board preview:
cd projects/minesweep
cargo run -q -p sigil-cli --manifest-path ../../language/compiler/Cargo.toml -- run src/main.sigil