Remake of the classic Minesweeper game, written in Python.
Read more about the project history in my blog post.
The application has been packaged with PyInstaller so that it can be played without setting up Python.
Download links available here:
The Python package is also available on PyPI: https://pypi.org/project/minegauler/.
python3 --version
)python3 -m pip install minegauler
python3 -m minegauler
See note on system dependencies below, or get in touch if you have any issues.
You will need Python 3.8+ to run the code (check with python3 --version
).
git clone https://github.com/LewisGaul/minegauler
cd minegauler
python3 -m pip install -r requirements.txt
python3 -m minegauler
If running in WSL (Windows Subsystem for Linux) you will need to set up an X-server for running graphical apps. This isn't too difficult to do, see https://wiki.ubuntu.com/WSL#Running_Graphical_Applications or search online for further advice - I would recommend downloading and using Xming.
If running with python -m minegauler
fails with Aborted (core dumped)
on Linux, you may need a package that provides graphical support. For me this was fixed by running sudo apt install libxkbcommon-x11-0
on Ubuntu in WSL1.
This app provides all of the basic functionality of the classic minesweeper game plus much more!
Game menu:
Options menu:
Note that all of the options above except 'safe start' have separate highscore tables.
Help menu:
Check the changelog to see a log of changes that have been made. See issues for upcoming features/fixes.
If there's a feature you'd like to see added, please don't hesitate to contact me!
Install the developer requirements with python3 -m pip install -r requirements-dev.txt
.
Run the tests with the command pytest
(see the pytest docs).
Get coverage information using the pytest-cov plugin: pytest --cov minegauler [--cov-report html]
.
Please don't hesitate to open an issue or a discussion if you think you've found a bug, have a feature request, or just want to say hi!
You can also email at minegauler@gmail.com.