Simple mine sweeper implementation for Elementary Programming class
The program keeps track of previous games and their details with a scoreboard that is printed when the game is started
The game starts with an initial CLI for game initialization and scoreboard logging
The game itself runs in a GUI with pretty sprites sourced from here
Included font sourced from here
The program uses a single JSON file for a database for simplicity
This implementation uses the timer as a countdown, rather than a time counter
The main problem with the game is random mine generation. Mines are initialized completely randomly and can result in boring games. Also the user can fail on the first click.
The program was tested on Arch Linux on Mac-OS
On Mac-OS ARM64 closing the event loop results in unexpected behaviour where the entire program closes instead of returning from the event-loop start. Fixing this is outside of the scope of this project and may be considered as platform specific behaviour.
- Install dependencies
$ pip install pyglet==1.5.29
- Start the game
$ python main.py
pyglet < v2.0
Tested on v1.5.29