WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Eight Queens Puzzle

boardsize
4
5
6
7
8
next configuration
A queen attacks another one if they are in the same row, column, or diagonal. Place eight queens on a chessboard such that no queen is under attack. Vary the size of the chess board and click the button to see different arrangements of the queens.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.