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

2

u/BlazeOrangeDeer Apr 24 '13

Not a bug, a diagonal square is only considered adjacent if you can also get there non-diagonally

1

u/JeffMo Apr 24 '13

This is the reason I felt ambiguous about it actually being a bug. It appears to be an odd interpretation of the phrase "allow diagonal."