Skip to content

Martan03/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minesweeper TUI implementation in Rust 🦀

Topics

Resources

License

Stars

Watchers

Forks

Languages