r/programming • u/hazadess • Apr 23 '13
PathFinding algorithm, visually explained
http://qiao.github.io/PathFinding.js/visual/
2.2k
Upvotes
r/programming • u/hazadess • Apr 23 '13
View all comments
3
u/dimmy Apr 24 '13
It's an excellent representation. Unfortunately there is a bug in the path finding algorithm: http://i.imgur.com/kPxr4cO.png
It seems to be prioritizing nodes solely based on the heuristic, i.e. the manhattan distance from the node to the goal. It should heuristic + walk distance from start.