Skip to content

A solver for n-puzzle games, using state-space search with A*.

Notifications You must be signed in to change notification settings

ccressent/npuzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A solver for n-puzzle games, using state-space search with A*.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages