PyPlayGround

Powered by
SourceForge.net Logo
Pathfinding Movement Control Battles Other



Pathfinding

 

Pathfinding is the task of finding the best (usually shortest) path between two points. This is hardly a trivial task, as between those two points may lie many obstacles. The two points are usually described as origin and destination to describe the expected direction of movement, but these roles may be disregarded by the pathfinder.

Pathfinding algorithms are usually designed to run over a grid of squares, with each square being either passable or not. Some algorithms also allow to specify how hard it is to pass a certain square. A longer path may be taken if it is much easier to pass.
PyPlayground, on the other hand, runs its algorithms in a theoretically infinitely-precise space. While an algorithm may choose to arbitrarily partition space into a grid, it is not necessary.

Good pages about pathfinding:




Pathfinders implemented for PyPlayground

Thanks to of the clean design of PyPlayground, code from implementations can easily be extracted into other projects.