r/programming • • Apr 23 '13

PathFinding algorithm, visually explained

http://qiao.github.io/PathFinding.js/visual/
2.2k Upvotes

230 comments sorted by

View all comments

Show parent comment

11

u/ryeguy Apr 24 '13

To put this into A* terms, it only works for fixed-cost maps. That means the cost is only allowed to be a function of manhattan distance, nothing more.

3

u/[deleted] Apr 24 '13 edited Apr 24 '13

[removed] — view removed comment

4

u/ryeguy Apr 24 '13

Looks like you're correct for diagonals. But other than that it has to be uniform cost per this excellent article.