If you miss the old Minesweeper game, you've come to the right place. With this code you will be able to run the Minesweeper game in your terminal.
In order to start the game you need to have installed Go programming language on your system.
- clone this repository
- go to directory where you cloned it
cd cmd && go run .
When the game starts, you will be presented with this view in the terminal:
The blue tile is the selected tile. You can move around the minefield using arrow keys or w, a, s, d.
Press r on your keyboard to reveal a tile. Press f to flag a selected tile. And press e to unflag a tile.
Enjoy the game!
- ↑ or W- move up
- ↓ or S- move down
- ← or A- move left
- → or D- move right
- R - reveal selected tile
- F - flag selected tile
- E or U - unflag selected tile