Skip to content

arcs-/Minesweeper-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper-Solver

A Minesweeper solver, written in Java

This is a solver to solve a minesweeper game for you. I mean, it is too tedious to do it yourself, right? It works by taking a screenshot, analyze it, then moving the mouse to where ever happens to be a mine.

It's completely self-contained and works pretty good. In the current form it solves only games from [Minesweeper X] (http://www.minesweeper.info/downloads/MinesweeperX.html) with the "vistabluemineskin" skin. This is because it analyzes the screenshot pixel by pixel comparing the color of blocks with the ones in the skin. You can change it, though. CHnage the static color variables in Board.java. I even left the "debug" method in, which will print the correct color.

The solving process involves two solving strategies.

  1. Neighbours, solve field by field
  2. Multiple, for each case where more logic is required (Tank solver by LuckyToile)

Please keep in mind that I (or anyone else) can guarantee to solve a game. The nature of minesweeper doesn't allow for a fool proof strategy.

example

About

A Minesweeper solver based on Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages