Introduction - If you have any usage issues, please Google them yourself
The problem put forward: 8 queens is an old and interesting game, is by the gaussian in 1850 of the first proposed.
The requirements in the chess board placed on eight queen, to make it can t attack each other, that is not in any two queen
The board with a line, the same column and the same diagonals. Asked how many kind of put method?
The basic idea is: first the queens on (0, 0) position, then put 1 queens on (1, j) position,
Make it meet the requirements. Then put 2 queen, by analogy. The queen met one such as whatever she put in the bank of any
Positions do not satisfy the requirements, the former a queen improper placement, must replace former a queen, such as 8 queens are at will
For place, this is a successful placed a law.