A* is a common algorithm used in path-finding AI. There are many others, but it is amoung the most used in games for it's quicker results and simplicity of implementation into the code. The technique relise heavily on recursion and the use of a map created as a grid or series of nodes as shown here in Christopher's example program.
Lazarus was use to write the code with SDL for graphics. Full source is on the PP4S website at www.pp4s.co.uk.
vBulletin Message