AI Minesweeper
Classic Minesweeper with an honest AI: every hint comes from a real constraint solver that proves cells safe, spots certain mines, and computes exact odds when logic runs out. First click is always safe.
Classic Minesweeper with an honest AI: every hint comes from a real constraint solver that proves cells safe, spots certain mines, and computes exact odds when logic runs out. First click is always safe.
New to the game? The full beginner walkthrough is in How to Play Minesweeper.
The 💡 Hint button runs a real constraint-satisfaction solver on exactly what you can see. Every revealed number becomes a constraint — "two mines among these five hidden cells" — and the solver combines them, including the subset logic behind classic patterns like 1-2-1, to find cells that are provably safe or provably mines. It tells you which rule it used, so every hint is also a lesson.
When no proof exists, it enumerates every mine arrangement consistent with the numbers and reports each cell's exact mine probability — then recommends the safest guess, the same way strong players decide when they must gamble.
No-Guess mode goes one step further: the generator runs this same solver on candidate boards and only serves ones it verified are clearable by pure logic from your first click. No more losing to a 50/50 coin flip on the last two cells.
Minesweeper is a deduction game, not a guessing game — almost every board is solvable if you read the numbers in the right order. These are the habits that move you from Beginner to Expert times.
Want the full treatment? Read Minesweeper patterns explained for the 1-1, 1-2, 1-2-1 and 1-2-2-1 shapes with diagrams, and Minesweeper strategy for opening theory and endgame counting. Or go under the hood: how the Minesweeper AI solver works.
New here? See our guide on how to use the Minesweeper solver for hints, mine probabilities and No-Guess mode.
A number counts the mines in the cells touching it — all eight neighbors, fewer at edges and corners. Cells with zero neighboring mines open automatically as a blank region. The numbers never lie.
Yes, the first click is always safe. Mines are placed only after your first click, and the game keeps the whole 3×3 area around that click clear, so your first click always opens a blank region. This is standard behavior in modern Minesweeper, so you can never lose on move one.
The classic levels are Beginner (9×9 with 10 mines), Medium (16×16 with 40 mines) and Expert (30×16 with 99 mines) — the standard Windows Minesweeper layouts. A Custom board is also available, letting you set your own width, height and mine count, so you can go harder than Expert if you want. Larger boards mean more overlapping numbers for the AI solver to reason about, which is where deduction patterns like 1-2-1 become useful.
The AI hint converts every visible number into a constraint and solves the system: provably safe cells, certain mines, or — when logic alone can't decide — the exact probability that each cell hides a mine. It also applies subset logic across overlapping numbers, the same reasoning behind patterns like 1-2-1. Nothing is read from the hidden board; the solver sees only what you see.
No-Guess mode only serves boards the built-in solver has verified can be cleared by pure deduction, never a guess. The board generator checks each candidate layout with the same constraint solver before it's ever shown to you. If you're stuck, a logical move always exists — ask for a hint and it will show you the rule you missed.
Yes, Minesweeper works on mobile. The board scales to fit any screen, so it works on a phone or tablet as well as a desktop. Tap a cell to reveal it, and long-press to place or remove a flag — the equivalent of a right-click.
AI Minesweeper is completely free, no download, no sign-up. Board, solver and best times all run client-side, so once loaded it keeps working without a connection. More games: AI Chess, AI Connect 4, AI Checkers, AI Othello, AI Sudoku or the games hub.
Every safe cell revealed.
Stuck on a board? The Minesweeper board solver works out which squares are provably safe.