Monday, May 28, 2018

path finding - Pseudo-code examples of A*?



I'm looking for pseudo-code examples of the A* pathfinding algorithm that actually works. I tried plenty of different ones where it's not really clear how to implement them at all times. Keep in mind that I'm a newbie, so if everything could be detailed, that'd be great.



Answer




I think the pseudocode in the Wikipedia article is sufficiently detailed. If you need more details and a working implementation then A* Pathfinding for Beginners is a good article. It has C++ sample code with comments.


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...