A small, self-contained minesweeper solver written in Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore initial commit Dec 22, 2012
LICENSE.md Create LICENSE.md Nov 22, 2016
MSolver.java fixing subtle logic bug Dec 30, 2012
README operating instructions Dec 24, 2012


More information here:

I posted the source code for entertainment purposes only, and I never seriously intended it to be compiled and run on another machine. Nevertheless, if you intend to run this on your own computer:

1. Make sure ScreenWidth, ScreenHeight, TOT_MINES are correct
2. Make the game window as big as you can. Try maximizing it.
3. Be sure that the entire game window is visible 2 seconds after it starts.

The calibration routine looks for intersections of dark lines, and if the resolution is too small, the lines change to a grayish color and you'll get "Calibration failed".

Detection is tricky and doesn't have a 100% success rate on my machine either. If it still doesn't work, you're out of luck xD