The following program solves the nQueens problem for a board with a fixed initial queen.
~$ python3 nQueens.py inputs/input_4.csv
Note: The initial board must have a queen already placed.
~$ python3 nQueensGrading.py inputs/input_4.csv solutions/solution__4.csv
Note: The solution file from nQueens.py is not output to the solutions folder.
-
AI and Heuristic Programming (CPSC 460/560):
- Project description
- main() in nQueens.py
- nQueensGrading.py