in FDAC ::
In chess, a queen can move as far as she pleases, horizontally, vertically, or diagonally. A chess board has 8 rows and 8 columns. The standard 8 by 8 Queen's problem asks how to place 8 queens on an ordinary chess board so that none of them can hit any other in one move.
In chess, a queen can move as far as she pleases, horizontally, vertically, or diagonally. A chess board has 8 rows and 8 columns. The standard 8 by 8 Queen's problem asks how to place 8 queens on an ordinary chess board so that none of them can hit any other in one move.
"8 Queens" is a Delphi application hosting a chess board to try for yourself and a button that will give you the possible solutions.
This is the second entry to the Fancy Delphi Application Contest
Read the full article to find more about (+ download source code) 8 Queen's on a ChessBoard
When you download the application and test, rate it:
If you already voted, take a look at poll results.Related:


Line 150 should read:
ListBox1.ItemIndex >= 0