Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 620 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 620 Bytes

nQueens

The following program solves the nQueens problem for a board with a fixed initial queen.

Usage

nQueens.py

~$ python3 nQueens.py inputs/input_4.csv

Note: The initial board must have a queen already placed.

nQueensGrading.py

~$ 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.

Credits

  • AI and Heuristic Programming (CPSC 460/560):

    • Project description
    • main() in nQueens.py
    • nQueensGrading.py