Skip to content

Implementation of A* algorithm for solving N-Puzzle

Notifications You must be signed in to change notification settings

pavelrosh/N-Puzzle

Repository files navigation

You can read more about N-Puzzle.

Goal:

Reach state listed below from random state:

images/goal.png

Usage:

images/usage.png

Search Algorithms:

  • A*
  • Greedy
  • Uniform-cost

For A* and Greedy next heuristic functions are available:

  • Misplaced --heuristic=misplaced
  • Manhatten --heuristic=manhatten
  • Euclidian --heuristic=euclidian
You can add -p for see solution trace

images/solution_command.png

images/solution.png

Example

images/example.png

Releases

No releases published

Packages

No packages published

Languages