Skip to content

Clxssyy/n-queens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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