Play the game (normal version) with:
python minesweeper.py
Play the game (GUI version) with:
python minesweeper_gui.py
When you begin the game you will see a display like this (10 mines are set up in this game) :
Left-click the cell where you want to open.The number of mines in the 8 neighbourhoods of that cell will be displayed. If you uncovers a mined cell, the game ends. And the correct ans will be displayed.
'Shift + left-click' on a cell will flag it, causing a flag to appear on it. And you will see this in that cell:
Unflagged with an additional 'Shift + left-click'.
To win the game, players must uncover all non-mine cells. Flagging all the mined cells is not required. When you win the game you will see a display like this:
Click the 'OK' button to close the game window.