42 project for solving a sliding block puzzle using the A* algorithm.
To run (on MacOS):
-
virtualenv npuzzle_env
-
source npuzzle_env/bin/activate
-
pip install -r requirements.txt
-
python3 gen.py -u 3 | python3 solver.py && open -a Google\ Chrome index.html
-
After the solver has finished solving the puzzle, you can click in the browser to play back the moves of the solution.