Terminal Minesweeper
To note
Works with Linux and MacOS platforms. The program was not tested on Windows
Quick Start
$ make
$ ./mine
Optional Arguments
usage: mine [-r num] [-c num] [-p num]
Optionally specify field [-r] rows and [-c] cols (20-128)
Optionally specify [-p] percentage of mines (1-60)
Controls
key | description |
---|---|
w/↑,a/←,s/↓,d/→ | Move cursor around |
SPACE | Open cell |
f | Flag/unflag cell |
r | Restart |
q | Quit |
Debug Mode
Build with debug mode:
$ make DEBUG=1
$ ./mine
key | description |
---|---|
p | Peek behind closed cells |