Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.83 KB

README.md

File metadata and controls

65 lines (48 loc) · 1.83 KB

minesweeper

Minesweeper implemented in terminal

image

Installation:

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

Usage:

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>

Detailed description

Game screen:

image

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.

Help screen

image

By pressing i you can display help with all other keybind that I didn't mention.

Technologies:

I used these libraries:

Links