Skip to content

sherry-lxy/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

Normal version

Play the game (normal version) with:

python minesweeper.py

GUI version

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:

Like this:

 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages