More general n-queens problem is the problem of placing n chess queens on an n×n chessboard, so that no two queens threaten each other. The problem is popular with N=8 with the name "Eight queens puzzle". Here are 3 simple implementation on Javascript, for fun.I worked on this for the "Artificial Intelligence" class of Professor Michail G. Lagoudakis.
| Chessboard size | × |
| Queens Number | |
| First Queen on | × |
| Search method | |