How to Use the Minesweeper Solver
Stuck on a difficult Minesweeper board? Our Minesweeper Solver uses advanced algorithms to help you find the next safe move. Whether you're learning the game or just want to see the probability behind every square, this tool is for you.
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 any square to start. The first click is always safe!
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").
- Probability: By solving thousands of these equations simultaneously, it calculates the exact % chance that any given square hides a mine.
Using the Solver Tools
1. Consistency Engine (The Brain)
- Standard Mode: Best for learning. It mimics human logic and highlights 100% safe moves.
- Probability Mode: The "God Mode". It shows the exact percentage chance of a mine for every single square. Use this when you are stuck and need to make the statistically best guess.
2. Auto-Play Controls
- Peek: Highlights the best next move without clicking it. Great for learning!
- Step: Automatically plays the single best safe move for you.
- 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.
