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
Show parent comment
2
u/Noctune Apr 24 '13 edited Apr 24 '13
Nope, diagonal moves cost sqrt(2) times more than a vertical/horizontal move. If it didn't, Dijkstra and Breadth-First search would be identical.