go_ms is a CLI-based Minesweeper and solver written in Go.
Suggest using built-in means like
brew
orapt-get
to avoid human error.
- Go - https://golang.org/doc/install#install
- (optional) Docker - https://docs.docker.com/engine/getstarted/
Run go build
in the repo directory to get an executable to run.
or
Simply run go run *.go
in the repo directory to avoid building an executable.
This will house the strategy/logic needed to solve Minesweeper automatically. 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.