Skip to content

Raphael0010/astar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A * PathFinder

Definition

0 = Wall
X >= 1 is the cost

It's based on the cost of the path and an estimate of the cost required to extend the path all the way to the goal.

 array = [[1, 0, 1, 1, 1],
         [1, 1, 1, 5, 1],
         [1, 0, 0, 3, 2],
         [1, 0, 1, 1, 1],
         [1, 0, 1, 1, 1]]

=

-> 4,4 -> 3,4 -> 2,4 -> 1,4 
-> 0,4 -> 0,3 -> 0,2 -> 1,2
-> 1,1 -> 1,0 -> 2,0 -> 3,0 

=

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Thanks to @yovanoc

License

MIT

About

A* Pathfinder with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages