This is a simple implementation of Minesweeper fully in Python.
Python 3.8+
git clone https://github.com/FelSiq/minesweepyr.git
pip install -Ur requirements.txt
While running the python script, the first argument must be the difficult level ('easy', 'medium', or 'expert'). Additionally, you may send a numeric random seed as the second (optional) argument to repeat the same game sequences.
python minesweepyr.py (easy|medium|expert) [random_seed]
Standard minesweeper commands:
- Left click: open tile;
- Right click: switch mark in tile; and
- Both/middle button: open all tiles in the neighborhood of target tile.
MIT.