Place 8 queens onto the chess board, no queen can be attacking any other queen.
A queen attacks all cells on its vertical, horizontal or diagonal lines of sight.
The eight queens puzzle has 92 distinct solutions on a 8x8 grid.
The problem was originally proposed in 1848 by the chess player Max Bazzel.
I made this simple algorithm with actionscript that gives a solution.
It can find a solution to the n queens puzzle for n = 1 or any n ≥ 4
Click here for more information about this classic problem.