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
1
u/Neebat Apr 24 '13
JPS doesn't handle weighted nodes. Doesn't DF allow roads to be built that offer faster travel?
I'd like to see a library available for doing JPS with multiple starting points. That helps a lot for a game like DF, because you frequently want to be connected with a route to the CLOSEST of many possible resources. (I think you have to run the algorithm backwards for this, to get a useful heuristic.)