Path finding

BlitzMax Forums/BlitzMax Beginners Area/Path finding

Has anyone actually used breadth first within bmax?

I’m having great trouble with it, determining any kind of path built around the criteria I originally mentioned?

The playing area is made of a grid, each square represents a different type of terrain, each terrain type costs a different amount of move points to traverse it, and each unit has a max amount of move points per turn.

I have it so that I can get a shortest path from unit to mouse pointer but have still no idea about how to work out all possible moves for the unit?

Any help appreciated?