Terminal minesweeper
``` A simple minesweeper game for the terminal.
Move the cursor with either wasd, hjkl or the arrows.
Flag/unflag the cell under the cursor by pressing f, or uncover it by pressing
Usage: mnswpr [OPTIONS]
Options:
-c, --columns
-r, --rows
-m, --mine-percentage
-p, --preset -c
and -r
take precendence over the preset
[default: tiny]
-t, --theme
--assisted-flagging
If active, trying to flag an open cell with N neighboring mines and N non-open adjacent cells will result in all of those cells getting flagged
--assisted-opening
If active, trying to open an open cell with N neighboring mines and N flagged adjacent cells will result in all of those cells getting opened
-h, --help
Print help information (use -h
for a summary)
-V, --version Print version information ```
If you don't want to specify the dimensions, you can use the -p
or --preset
flags and provide one of the provided presets:
- tiny
: 20x13 field
- small
: 30x20 field
- medium
: 40x25 field
- large
: 50x30 field
- huge
: 60x40 field
Note: controls are case-insensitive
Note that the sizes the field will always be constrained by the size of the terminal. As such, width and height will be clamped between 1 and you terminal's width/height minus some padding