Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.07 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.07 KB

Minesweeper

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.

How to start the game

In order to start the game you need to have installed Go programming language on your system.

  1. clone this repository
  2. go to directory where you cloned it
  3. cd cmd && go run .

How to play the game

When the game starts, you will be presented with this view in the terminal:

Alt text

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!

Alt text

Controls

  • 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