|
Find all the ways to place eight queens on an ordinary
chessboard so that no queen attacks any other queen.
Two queens attack each other if they are on the same rank
(horizontal row) or the same file (vertical column) or the same
diagonal.
For extra credit, design a neat way to make the solver print the
solutions in a pretty format.
|