Minesweeper implemented in terminal
You have to compile it yourself, but that shouldn't be a problem. Only thing
you need is cargo
:
cargo build -r
After its done compiling, you can start it in ./target/release/minesweeper
Start minesweeper with default difficulty (medium):
./minesweeper
Start minesweeper with different difficulty:
./minesweeper -d <easy|medium|hard>
Or you can create your custom difficulty:
./minesweeper -c <board width> <board height> <number of mines>
When you start the game, you will see the board in the middle and number of
flags left above the board on the left side. You can then use arrow keys to
change selected cell. By pressing d
or Enter
you reveal currently selected
cell. To place/remove flag, you can press f
.
When you fill the whole board and it's correct, you will see Victory message above the board on the right side.
By pressing i
you can display help with all other keybind that I didn't
mention.
I used these libraries:
- Author: Martan03
- GitHub repository: termint
- Author website: martan03.github.io