Solve 8 Puzzle using Breadth First Search algorithm
In file solve_puzzle.py:
- Set current_state.state to desired initial state (np.ndarray)
- Set goal_state (np.ndarray) (global variable) to desired final state.
- Run
python3 solve_puzzle.py
in terminal - Run
python3 plot_path.py
to visualize steps of Breadth First Search.
- numpy
- os
- sys