Designed to work on: http://minesweeperonline.com/
For use beyond keybinds minimal technical skill in javascript is needed.
Finds all certain results and if a guess has to be made, it calculates the probability of candidates being bombs. Reaches a win rating of about 51% with an average of roughly 2.65 guesses per game (tested with over 200K games).
- Navigate to http://minesweeperonline.com/
- Open the developer console for your browser
- Copy all the code within sweeper.js into the console and execute it
Note: Keybinds are in square brackets.
sweep step guessing [w]:
Executes a single step for solving the game, guesses move if not certain.
sweep step guessing without board interaction [shift+w]:
Determines a single step and outputs the interactions to the console, suggests a move if not certain.
sweep step certain [e]:
Executes a single step for solving the game, stops when there is no certain interaction and outputs step details in that case.
sweep step guessing without board interaction [shift+e]:
Determines a single step and outputs the certain interactions to the console.
start auto sweeper [s]:
Starts the auto sweeper, that will execute steps automatically until stopped.
stop auto sweeper [d]:
Stops the auto sweeper.
format log game stats [i]:
Outputs the stats for the auto sweeper to the console.
format log game stats with raw [o]:
Outputs the stats for the auto sweeper to the console with raw data included.
reset game stats [k]:
Resets the game stats for the auto sweeper.
toggle log [l]:
Toggles if the auto sweeper should output its steps to the console.
The functionality that is offered with keybinds and more can also be called directly in the console as functions.
All settings for the auto sweeper can be found within the global object autoSweepConfig.
doLog: Determines if the auto sweeper should output its steps to the console
isRiddleFinderMode: If enabled, the sweeper will stop on difficult problems for you to solve
baseIdleTime: Specifies the time the solver waits for each step in milliseconds
gameFinishedIdleTime: Specifies the time the solver waits after it has finished a game in milliseconds