N-Queens Problem

Chessboard
Place 8 queens on a 8×8 chessboard so that no two queens threaten each other

No solutions found

Controls
Adjust the board size and explore different solutions
Board Size (N)8
Note: Larger board sizes may take longer to compute

Statistics

Total Solutions:
0
First Solution:
None

About the N-Queens Problem

The N-Queens puzzle is the problem of placing N chess queens on an N×N chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal.

The problem has 92 distinct solutions for an 8×8 board. If solutions that differ only by symmetry operations (rotations and reflections) are counted as one, the problem has 12 unique solutions.