A complete Minesweeper game with multiple modes (Beginner, Intermediate, Expert, and Custom). The game runs in a desktop window and supports left-click to reveal, right-click to place flags, a timer, and win/lose dialogs.
- Multiple modes: Beginner, Intermediate, Expert, Custom
- Left-click to reveal, right-click to flag
- Timer and remaining mine counter
- Win/lose detection
python minesweeper.pyRequires Python 3 with Tkinter (included with most Python installations).
- Install PyInstaller:
pip install pyinstaller
- Build the executable:
pyinstaller --onefile --windowed minesweeper.py
- The EXE will be available in the
distfolder.
- Left click: reveal a cell
- Right click: toggle a flag
- Reset: start a new game