The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, following is a solution for 8 Queen problem. The 8 queens problem is simple. On an 8×8 chess board, the queen can move any number of squares horizontally, vertically, and diagonally. Normally, there is one queen per side on the board but for this problem, there are 8. This can be generalized to N queens […]
Read more