The Python 🐍 problem-solving bootcamp πŸš€ is starting soon. Join the second cohort now!

Minesweeper has to be one of the most well-known minigames of all time, no? I spent my fair share of Sunday mornings playing minesweeper in my Windows XP computer...

The Python 🐍 problem-solving bootcamp is starting soon. Join the second cohort now!

A screenshot of my implementation of Minesweeper

I made a remake of Minesweeper when I was trying to sharpen my Python skills and you can see above a screenshot of my version of the game.

You can find the code in this GitHub repo GitHub repo, where you can also find a Windows executable.

The game is fairly easy to play:

  • The objective is to find all of the mines.
  • Using the left mouse button reveals what is beneath the cell clicked. Clicking a mine means game over.
  • If you are sure of the location of a mine, use the right mouse button to flag it.
  • A numbered cell indicates how many mines are present in its neighbouring cells.

Take your Python 🐍 skills to the next level πŸš€

I write about Python every week. Join +16.000 others who are taking their Python 🐍 skills to the next level πŸš€, one email at a time.

Previous Post Next Post

Blog Comments powered by Disqus.