Skip to content

ericrpowers/java_ms

Repository files navigation

java_ms

java_ms is a CLI-based Minesweeper and solver written in Java.

Additionally, there is Docker support and unit tests utilizing JUnit.

Prerequisites

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

Running java_ms

From the repo directory:

javac MineSweeper.java
java MineSweeper

Solver

An automatic way to solve Minesweeper. 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 Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages