pavelrosh / N-Puzzle

Implementation of A* algorithm for solving N-Puzzle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Implementation of A* algorithm for solving N-Puzzle


Languages

Language:Python 100.0%