Projects from Artificial Intelligence Class
Assignment 0 is a n-queens and n-rooks problem. The code n-queens.py solves nqueens if the number of queens is specified as a command line arguement. The code a0.py solves nqueens and n-rooks, if the arguements 'nqueen' or 'nrook' is given in its command line input.
Assignment 1 is a 16 puzzle solver with a small change - one, two or three pieces can be pushed in one move. The code can be run by giving the input in a text file. An example of a text file is 15-puzzle.txt. The name of the text file needs to pe provided in command line arguements while calling the program.