Minesweeper

Minesweeper is a simple, fun, classic computer game that I recreated using Python 2.7 and PyGTK 2.24 as one of my earliest experiments with the Python programming language. The object of the game is to clear every square except those containing mines.

A screenshot from my Python remake of the classic Minesweeper game.
A screenshot from my Python remake of the classic Minesweeper game.

Cleared squares next to mines display a number indicating how many mines are next to them. In my version of the game, only two actions are available: left-click to reveal a square’s contents, and right-click to place a flag on a square that you believe conceals a mine. Left-click on a square concealing a mine and you lose the game!

Source code and assets available on GitHub.

Comments