How the solver works
The solver doesn't search for the answer and show it to you. It solves the board the way a strong player does, always taking the easiest step left:
- Last open square. A row, column or colour with one square left must take its queen there, and that queen rules out its row, column, colour and every square touching it.
- Colour in one line. If all of a colour's open squares sit in one row, that row's queen belongs to the colour, so the rest of the row is ruled out. The same works for columns, and the other way round.
- Squares that would empty a colour. A square that touches, or lines up with, every open square of a colour would leave that colour without a queen.
- Colours that share lines. When two or three colours only have squares in the same two or three rows, those rows belong to them, and every other colour leaves them.
- What if. On the hardest boards it tries a queen and follows what that forces, a few moves at most, until a row, column or colour runs out of squares.
We tested it against hundreds of real Queens boards, and these deductions alone solved nearly all of them. Before it explains anything, it checks that your board has exactly one answer. Learn the same moves in how to solve Queens without guessing and advanced Queens techniques.
What it can solve
Any Queens board from 5×5 to 12×12: our daily Queens puzzles, LinkedIn's daily Queens, puzzle books and other apps. Our own boards have full written solutions from the day after they're released. Solving two-star boards instead? Try the Star Battle solver.