Backtracking with the eight queens puzzle
If you place the queen in a safe compartment one line at a time and there is no place to place her, go straight back to the top row and try the next one, and find all the answers.
- Category
- Game AI
Technical terms · Backtracking · Eight queens puzzle · Constraint check (column · diagonal)