Minesweeper solver
Copy your board in: paint the numbers you can see, flag what you've flagged. S marks a square that's safe no matter what, M a square that's a mine no matter what, and every other square shows its chance of being a mine.
The patterns it's using
You can do most of this in your head once you know the classics:
- Satisfied number. A 1 already touching a flag: every other square around it is safe.
- 1-1 on a wall. Two 1s side by side along an edge share most of their squares; the square only the second 1 sees is safe.
- 1-2-1. Along a straight edge, the mines sit under the two 1s and the square under the 2 is safe.
- 1-2-2-1. The mines sit under the two 2s.
The solver doesn't use a list of patterns. It checks every arrangement, so it also catches the ones that don't have names.
Common questions
How does a minesweeper solver work?
Every number is a rule: "exactly this many mines touch me." The solver tries every arrangement of mines in the unopened squares next to numbers that obeys all the rules at once. A square that is empty in every arrangement is safe; one that is a mine in every arrangement is a sure mine; the rest get the share of arrangements where they hold a mine.
Why does it ask for the total number of mines?
It helps near the end of a game. Knowing the total makes some arrangements more likely than others (they leave different numbers of mines for the squares nobody has touched), and it gives odds for those untouched squares too.
Is minesweeper always solvable without guessing?
No. Classic Minesweeper often deals positions where no square is provably safe, especially 50/50 pairs at the edges. When that happens the solver shows the lowest-risk square instead.
How do I enter my board quickly?
Pick a brush (a number, Flag or Unopened) and click squares to paint them. With a keyboard, Tab into the board, move with the arrow keys and type 0 to 8, F for a flag, or Backspace for unopened.
More solvers and ciphers
- Nonogram solverType the clues, get the picture, and whether it has one answer.
- Word ladder solverThe shortest chain between two words, one letter at a time.
- Pigpen cipherEncode to the Freemason symbols, or tap symbols to decode.
- Scytale cipherThe Spartan rod cipher, with a try-every-rod decoder.
- Atbash cipherA becomes Z, B becomes Y. Encode and decode at once.