Skip to content

ericrpowers/go_ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go_ms

go_ms is a CLI-based Minesweeper and solver written in Go.

Prerequisites

Suggest using built-in means like brew or apt-get to avoid human error.

Running go_ms

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.

Solver

This will house the strategy/logic needed to solve Minesweeper automatically. The current thought process is the following:

  1. Identify all safe moves and mines based on immediate neighbors
  2. Identify all safe moves based on known mines
  3. Identify all safe moves by using neighbors' info
  4. Identify least risky move
  5. Blind click if no other options are found

The pass rate is a little above 90% (100,000 iterations) currently.

About

Minesweeper and Solver written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages