The venerable A* algorithm provides the baseline for pathfinding in Screeps.
Within a single room, the Clockwork implementation of the A* algorithm alone is competitive with PathFinder. However, across longer distances (greater than a single room), PathFinder’s JPS optimizations make a significant difference.
We’ll experiment with a few different options.
The theory:
Drawbacks:
Cost matrix used for calculating landmarks needs to be the same as cost matrix for pathing