py_ms is a CLI-based Minesweeper and solver written in Python.
Additionally, there is Docker support and unit tests utilizing unittest.
Suggest using built-in means like
brew
,apt-get
orpip
to avoid human error.
- Python 2.7.x - https://www.python.org/downloads/release/python-2713/
- (optional) Docker - https://docs.docker.com/engine/getstarted/
From the repo directory:
python ./Minesweeper.py
An automatic way to solve Minesweeper. The current thought process is the following:
- Identify all safe moves and mines based on immediate neighbors
- Identify all safe moves based on known mines
- Identify all safe moves by using neighbors' info
- Identify least risky move
- Blind click if no other options are found
The pass rate is a little above 90% (100,000 iterations) currently.