This is a Python implementation of the classic game Minesweeper using the customtkinter.
Minesweeper is a single-player puzzle game. The objective of the game is to clear a rectangular board containing hidden "mines" without detonating any of them, with help from clues about the number of neighboring mines in each field.
- The game is played on a grid of squares.
- Some squares contain mines; others don't.
- If you click on a square containing a mine, you lose.
- If you manage to click all the squares (without clicking on any mines) you win.
- Clicking a square which doesn't have a bomb reveals the number of neighboring squares containing mines.
- Use this information plus some guess work to avoid the mines.
To run this game, you need Python installed on your machine. Follow these steps:
- Clone this repository to your local machine using
git clone https://github.com/souvik-13/minsweeper-python-tkinter.git
. - Navigate to the cloned repository using
cd minsweeper-python-tkinter
. - Install the required dependencies using
pip install -r requirements.txt
. - Run
python main.py
to start the game.
Enjoy the game!