The Eight Queens Puzzle – Play It Free Online and How It Differs From the Queens Game
By Puzzledoku · Published · Last updated
The eight queens puzzle asks you to place eight chess queens on an 8×8 board so no two share a row, column or diagonal. It has 92 solutions, with 12 fundamentally distinct arrangements; the others are rotations or reflections. The Queens game adds colored regions and only blocks touching diagonal neighbors. Those constraints create a different puzzle: Puzzledoku’s Queens boards are designed and checked to have exactly one answer.
What is the eight queens puzzle?
- Place exactly eight queens on a plain 8×8 chessboard, one in each row.
- No two queens may share a column.
- No two queens may share a diagonal, at any distance across the board.
Tap a square to place or remove a queen. On a keyboard, Tab to the board, use arrow keys to move, and Enter or Space to place or remove. Attacking queens show a border and ! mark.
0 of 8 queens placed. Enable JavaScript to play.
There are no lives or timer on this classic board. Remove a queen whenever you want to reconsider a move. Chess composer Max Bezzel first posed the problem in 1848; it is also a familiar way to teach backtracking in programming. The University of Texas eight queens lesson describes its history and solution counts.
How many solutions are there?
There are 92 total solutions and 12 fundamentally distinct solutions. Turning or reflecting a finished board gives another placement counted in the total, but not a new fundamental arrangement. It is not simply 12 × 8: one fundamental arrangement is unchanged by a half-turn, so it produces four placements rather than eight. The OEIS illustration of all eight queens solutions (PDF) shows these symmetry groups.
The n queens puzzle applies the same rules to n queens on an n×n board. These totals come from OEIS A000170. The 2×2 and 3×3 boards have no solution; 1×1 and every size from 4×4 onward do.
| Board size (n) | Solutions |
|---|---|
| 1 | 1 |
| 2 | 0 |
| 3 | 0 |
| 4 | 2 |
| 5 | 10 |
| 6 | 4 |
| 7 | 40 |
| 8 | 92 |
| 9 | 352 |
| 10 | 724 |
How to solve it by hand
- Work one row at a time. Place the first queen, then look for a column in the next row that no earlier queen attacks.
- Check every queen already placed. A diagonal attack happens when the row distance equals the column distance. Two rows down and two columns across is still an attack.
- Try spaced offsets. Moving one row down and two columns across, like a knight move, avoids an attack from the previous queen. It can still conflict with an earlier queen, so it is a starting idea rather than a rule. Corners can belong to valid solutions; there is no need to ban them.
- Back up at a dead end. If a row has no safe square, remove the queen in the previous row and try its next available column. Keep track of the options tried. This is backtracking by hand.
Show one valid eight queens solution
Count rows from top to bottom and columns from left to right, starting at 1. For rows 1 through 8, place queens in columns 1, 5, 8, 6, 3, 7, 2, 4. Each column is used once, and no pair has equal row and column distances, so no diagonal is shared. This example starts in a corner.
Eight queens vs the Queens game
The names overlap, but the diagonal and region rules change how you solve the board. A long diagonal is legal in the Queens game when the pieces do not touch. Read the Queens rules or the Queens strategy guide for deductions based on regions.
| Feature | Eight queens puzzle | The Queens game on Puzzledoku |
|---|---|---|
| Board | Plain 8×8 chessboard | Colored regions: 8×8 and 10×10 in the 200 regular levels, plus a separate 6×6 warm-up |
| Diagonal rule | No shared diagonal at any distance | Only touching diagonal cells are forbidden |
| Regions | None | Exactly one piece per colored region |
| Rows and columns | One queen in each | One piece in each |
| Solutions | 92 total, 12 fundamentally distinct | Exactly one per published board, checked during puzzle creation |
Eight queens vs Star Battle
Star Battle has regions and a no-touching rule, rather than the chess queen’s full diagonal attack. One-star Star Battle uses one star per row, column and region, just like the Queens game. Two-star and three-star puzzles need more pieces in each; those variants are not playable here. The Star Battle guide explains the rules and includes a playable one-star board.
Keep playing
For a puzzle with regions and one intended answer, choose a Queens board:
- 6×6 Queens warm-up: an easy first step with the basic deductions.
- 8×8 Queens puzzles: the familiar board size with different rules.
- 10×10 Queens puzzles: more rows and regions to inspect.
- Daily Queens puzzle: a shared 8×8 board for each UTC date.
- Cat Queens: the same region rules with kittens and its own boards.
FAQ
How many solutions does the 8 queens puzzle have?
The 8 queens puzzle has 92 solutions on an 8×8 board. There are 12 fundamentally distinct solutions when rotations and reflections count as the same arrangement.
Is the Queens game the same as the eight queens puzzle?
No. Classic chess queens attack along entire diagonals, and the board has no regions. The Queens game adds one piece per colored region and only forbids touching diagonal neighbors; pieces may share a longer diagonal. Puzzledoku’s Queens boards are designed and checked to have exactly one solution.
Can you solve the eight queens puzzle without a computer?
Yes. Place one queen per row, checking every earlier queen for column and diagonal attacks. At a dead end, move back to the previous row and try another column. This is backtracking by hand, and it works on paper or on the board above.
What is the n queens puzzle, and which board sizes have no solution?
The n queens puzzle asks for n non-attacking chess queens on an n×n board. For positive whole-number sizes, only 2×2 and 3×3 have no solution. The 1×1 board has one solution, and every size from 4×4 upward has at least one.
Is there a free eight queens puzzle game online?
Yes. Play the free classic 8×8 board on this page, with conflict highlighting and a Reset button. For colored regions and a single intended answer, try our free Queens game with puppies or Cat Queens with kittens.
Put the rules into practice
New to the puzzle? Start with the rules and controls. Our boards are original Puzzledoku puzzles.
Queens guides and comparisons
- Compare free Queens games and related Star Battle puzzles
- Queens strategy: find your next move
- Cat Queens tips for beginners: solve without guessing
- Queens solver: get a hint for any board
- Star Battle rules and how they relate to Queens
- Printable Queens puzzles with answers
- 6x6 Queens warm-up: smaller boards that use only the basic steps
- 8x8 Queens levels by technique, with a worked opening
- 10x10 Queens levels by technique, with a worked opening
- Compare an app with browser Queens rules
- Compare an animal puzzle app with browser Queens
- More Queens puzzles after your daily game: a comparison