K this was hard to track down, but it seems really well written. Its not a code snippet but a tutorial on creating a pathfinding routine. The final coding examples are in blitzbasic, but the principles are the same. Better than the C++ examples atleast

. It talks through the concept, with simplistic images. If someone could post this in the resources section, it would be worth it. Or make a darkbasic related one .... rich
http://www.policyalmanac.org/games/aStarTutorial.htm