Skip to content

Eight queens

puzzles

Level 2 of 3

Also called The eight queens puzzle and N queens, by backtracking.

Puts queens on a square board so that no two attack each other, one row at a time. Each queen goes on the first square of its row that no queen attacks; when a row has no square left to try, the queen above moves on along its row, or comes off and the one above that moves on.

squares checked
0
queens put down
0

step 1 of 1

Examples

A whole number from 1 to 8, the number of squares along each side of the board, for example 6.