As basic (and as of right now, incomplete) implementation of the game Minesweeper.
Before executing the command line script, be sure to npm install
.
$ npm run cli
$ # 3 colums, 4 rows, 2 mines
$ npm run cli -- 3 4 2
Exposes all bombs from the start (intended for debugging and development)
$ export CHEAT=true
$ npm run cli
$ npm test
- Add support for flagging a cell to mark it as having a bomb
- Add jsdoc parser to produce public API documentation
Dan Kreft [email protected]