This is a simple implementation for 8-Puzzle game solver. To execute:
python driver.py <algorithm> <board configuration>
For example, to execute A* for the board:
6 | 1 | 8 |
---|---|---|
4 | 0 | 2 |
7 | 3 | 5 |
Execute:
python driver.py ast 6,1,8,4,0,2,7,3,5
Implemented algorithms:
python driver.py bfs 6,1,8,4,0,2,7,3,5
python driver.py dfs 6,1,8,4,0,2,7,3,5
python driver.py ast 6,1,8,4,0,2,7,3,5