All games

8 Queens Puzzle

No queen may attack another. Solutions

Queens 0 / 80:00

Tap a square to place a queen

Solutions found (8×8)

Tap one to show it on the board

How to play the 8 Queens Puzzle

Tips

How many solutions are there?

The 8×8 board has 92 solutions in all. See every one of them, the 12 unique ones, and how backtracking (the last tip above) finds them:

About the 8 Queens Puzzle

The puzzle was first posed in 1848 by the chess composer Max Bezzel, and in 1850 Franz Nauck published the first solutions. Many mathematicians, including Carl Friedrich Gauss, worked on it. In 1972 Edsger Dijkstra used it to illustrate structured programming, with a depth-first backtracking algorithm.