Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 397 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 397 Bytes

npuzzle

A solver for the 8-puzzle game, using state-space search with A* and different heuristics (Manhattan distance or number of misplaced tiles), with no external dependencies.

Usage

python npuzzle.py

You can change the initial state and the desired goal state in npuzzle.py.

Testing

python -m unittest discover