Introduction - If you have any usage issues, please Google them yourself
The problem is that the famous 19th century mathematician Gauss 1850 s. Eight queens problem requires a 8 × 8 chessboard
Put 8 on the Queen, so that each queen attacks both less than seven other queen, nor queen was attacked by the other seven. Press
According to the rules of chess, a queen can attack with them in the same row or column or any other on the same diagonal pieces.
Therefore, the eight queens problem is tantamount to asking eight in any two of the Queen can not be on the same row or same column or the same diagonal.
The code for the code to solve this problem