How to Use the Minesweeper Solver
Stuck on a difficult Minesweeper board? Our Minesweeper Solver checks the visible clues and can suggest a safe move when the current position supports one. Some positions still require a guess, but the solver can help you inspect the board logic.
Getting Started
- Board Size: Select a difficulty (Beginner, Intermediate, Expert) or choose Custom to set your own Rows, Cols, and Mines.
- New Game: Click to generate a fresh board.
- First Move: Click a square to start. The default game protects the first click.
How the AI Works
This solver isn't just guessing. It uses a logic-based approach called a Constraint Satisfaction Problem (CSP).
- Logic: It looks at every number on the board and creates a mathematical equation (e.g., "Squares A + B + C must contain exactly 1 mine").
- Constraint checks: It compares the possible mine layouts with the visible clues and uses those constraints to identify moves that are safe in the current position.
Using the Solver Tools
1. Consistency Engine (The Brain)
- Peek: Best for learning. It highlights a suggested move without clicking it.
- Uncertain positions: Some boards allow more than one valid mine layout. If there is no logically certain safe move, you may need to guess.
2. Hints and Auto-Play Controls
- Step: Highlights one suggested safe cell to click or confirmed mine to flag. It does not change the board.
- Loop/Solve: The AI takes over and plays the game until it wins or requires a guess.
Advanced Features
Cheats
Sometimes you just want to win. We get it.
- Random: Reveals a random safe square anywhere on the board.
- Fringe: Reveals a safe square adjacent to your current numbers (helping you progress without jumping to a random spot).
Save & Load
- Export: Download your current game state as an XML file. Share tricky boards with friends!
- Load: Upload an XML file to resume specific board states.
Learn More
Want to learn the logic yourself? Check out our guide on How to Play Minesweeper to master the 1-1 pattern and chording strategies.
Frequently Asked Questions
How do I ask the solver for a move?
Reveal enough cells to show clues, then use Peek to inspect a suggested move. Step or Solve can play available moves for you.
Does the solver guarantee a safe move every time?
No. When the visible clues leave multiple valid possibilities, the board may require a guess.
Can I import a saved board?
Yes. Use the load controls to import a supported XML save or an image, then review the board before continuing.