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
1
u/JeffMo Apr 24 '13
Try putting 4 walls "surrounding" the red node, in the non-diagonal positions. This appears to stump even the algorithms that allegedly allow diagonal.
Then remove the "east" wall. Now, a path is found that was available (but apparently undetectable) before.