[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] A* pathfinding demo



i made a very small, simple demo showing pathfinding with the A* algorithm.

grab it from this place:
http://www.doink.ch/pathfinding.php

it is terribly slow, but the neat thing about it is that you can graphically see how the algorithm is proceeding. i tried speeding it up by using surfarray to paint pixels and a priority-queue with heapq.heappop() and heapq.heappush(), but that didn't help a lot.

i hope there aren't too many bugs in it (newbie!) and i appreciate any comments.

luzi