The N-Queens puzzle is the problem of placing n chess queens on an n×n chessboard so that no two queens attack each other. The Eight Queens problem is the n-queens problem for a standard size chessboard.

λ N-Queens