Recent comments
-
2 days 12 hours ago
-
4 days 4 hours ago
-
1 week 1 day ago
-
1 week 3 days ago
-
1 week 4 days ago
-
1 week 4 days ago
-
1 week 5 days ago
-
1 week 6 days ago
-
2 weeks 1 hour ago
-
2 weeks 4 days ago
-
2 weeks 6 days ago
-
2 weeks 6 days ago
Follow us
Elk News - the email newsletter
Subscribe to the Elk RSS feed, including blog posts, pictures and videos.
Titles only
Full content
Comments aren't included in these feeds. For them you can click the RSS icon in the Recent Comments box.
Our videos at
YouTube
Add new reply
Something like that, yes =) Instead of just using A* to find a route around any obstacle, I'm working on different heuristic methods depending on obstacle type. Mountains are simple; despite of their irregular shape you can treat them as regular polygons, and then just go from point to point. But rivers are entirely different; they are easiest to cross on shallow fords, so my algorithm first looks for suitable fords and then picks the best one. And that was the tricky part =) For a moment I thought that maybe I should just drop my heuristics and go for A* as that should always find the route. But after some work with pen and paper I guess I got my heuristic rules working... For the fun of it, I'll post a picture to illustrate the river puzzle. The picture is here: http://www.enormouselk.com/?q=erkkasblog/images/river-puzzle