Minesweeper is a logic puzzle video game genre generally played on personal computers. The game features a grid of clickable squares, with hidden "mines" scattered throughout the board. The objective is to clear the board without detonating any mines, with help from clues about the number of neighboring mines in each field.
Simply change your directory inside the terminal to a folder with the following files:
minesweeper.py
game.py
functions.py
and execute the program with the command python minesweeper.py
.
You will be prompted to choose a difficulty. The default difficulties are Beginner
, Intermediate
and Expert
, but you can choose the number of rows, columns and mines using the Custom
difficulty.
You can now begin playing. You can select a cell, or place a flag on a cell.
- You can't select a cell with a flag, but you can remove a flag from a cell by using the
Flag
option again. - Once you select a cell that does not have a mine, all cells near the chosen cell that have the same number of mines around them will also be automatically selected.
- You win when you select every cell that does not have a mine, and you lose if you select any cell with a mine.
This program was made to avoid any sort of bug/crash, but if you find any, please let me know.