@Peter87:
I'm weird about variable names. I know that the
x and
y are the wrong way round but that's just how I did it. I guess I'll switch that now, same with a, b, i & j
___________________________________________________________
@BlackSheep
-Thanks, didn't know that about A*. I was under the impression that it was just a brute force pathfinding algorithm.
-Not legal C++? Really? I've always been under the impression that this was fine, and it's worked on every compiler (at least 3) that I've used.
-That definitely isn't the output that I get:
and from what I've tested, any start_x and start_y (within the map of course) work absolutely fine.
___________________________________________________________
Question: From this current algorithm, how would you find the route, rather than the distance?