Minesweeper game in python

Minesweeper game in python

Introduction

Minesweeper is a single player puzzle game made in python.  The objective of the game is to clear the board without exploding any of the hidden bombs.

Minesweeper game is created using python programming language. In this project, we are creating the most played game that is found on our computer and mobile phones. The game has a 10×10 board that you see when you execute the project. It has a command-line interface. You must use numbers from your keyboard to plot inside the box.

If you find the hidden bomb while plotting the number, the game ends. If you plot all the numbers not exploding the bomb you win. You can edit the board by changing the code. The program will ask the user where they want to dig. You must input numbers in the form of row and col as coordinates. Eg. (0,0) (2,3) etc. See the screenshot below.

Minesweeper

How to use this minesweeper project?

  • Download and extract the zip file.
  • Open the file in editor or IDE. (pycharm, anaconda)
  • Execute the program.
  • Play the game.
  • Enjoy and share.

Click the button below to get the source code for this minesweeper project.