Minesweeper

Minesweeper is a simple, classic computer game that I recreated using PyGTK as one of my earliest experiments with Python. The object of the game is to clear every square not containing a mine.

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