Minesweeper to the nth dimension.
npm install nsweeperNsweeper is a Minesweeper engine with options for things like size, dimensions, mine density, etc..
Ever wanted to play Minesweeper in 3D? Here's your chance.
Nsweeper is the result of a personal hackathon on Feb 8th, 2020.
```
npm i nsweeper -g
See options:
`
$ nsweeper -h
Usage: nsweeper [options]
Options:
-V, --version output the version number
-s, --size
-d, --dimension
-x, --difficulty
-w, --easywin
-h, --help output usage information
`
Start a game:
``
$ nsweeper -d 3 -s 5
Play on the command line:
`
=> Initialized nsweeper board with 3 dimensions, 3 length per dimension, containing 20% mines. Easy win is off.
1 1 2 3
1 ▆ ▆ ▆
2 ▆ ▆ ▆
3 ▆ ▆ ▆
2 1 2 3
1 ▆ ▆ ▆
2 ▆ ▆ ▆
3 ▆ ▆ ▆
3 1 2 3
1 ▆ ▆ ▆
2 ▆ ▆ ▆
3 ▆ ▆ ▆
Pick coordinates, exit, moves, or help:
`
Gif example:
!Demo
- Web app deployment.
- Show which flags are incorrect on board reveal.
- Nate Hatcher - _Original Author_ - hatch
See also the list of contributors who participated in this project.
This project is licensed under the ISC License - see the LICENSE.md file for details
- @dankogai for js-combinatorics, baseN` made finding neighbors in arbitrary dimensions easy.