Multiple implementations of a 15 puzzle solver and a 15 puzzle terminal game.
pip install clickpython3 game.py -s [number of shuffles]- -s - The number of times the board will be shuffled. [Default: 250] [optional] [example: -s 50]
python3 game.py --helpStart a game with 250 shuffles
python3 game.py -s 250- Edit the PUZZLE variable with your puzzle configuration.
- Call
python3 solver.py [astar|idastar|bfs] [number of shuffles]to generate a solution.
- solver - The solver that will be used to solve the 15 puzzle. [Options: astar | idastar | bfs] [required] [example: astar]
- shuffles - The number of time the board will be shuffled. [Default: 0] [optional] [example: 50]
Generates a solution the fastest. Solution not guranteed to be optimal.
Takes longer to generate solutinons. Solutions are optimal.
Takes longer to generate solutinons. Solutions are optimal.
Solve a puzzle using astar with no shuffles.
python3 solver.py astar 0Solve a puzzle using idastar with 10 shuffles.
python3 solver.py idastar 10Solve a puzzle using bfs with 50 shuffles.
python3 solver.py bfs 50