Grid Size
Theme
Name Your AI
Mode
Heuristic
Animation Speed
A* (A-Star) Algorithm
A* finds the shortest path by combining g(n) — actual cost from start — with h(n) — a heuristic estimate to the goal. It always expands the node with the lowest f(n) = g(n) + h(n).
Manhattan Heuristic
Counts horizontal + vertical steps to the goal. Best for grid movement with no diagonals. Typically expands fewer nodes than Euclidean on axis-aligned grids.
Euclidean Heuristic
Straight-line distance to the goal. More accurate but can over-estimate on grids — may expand slightly more nodes in practice.
Zero Heuristic (Dijkstra)
Setting h(n) = 0 turns A* into Dijkstra's algorithm: guaranteed optimal but explores many more nodes since it has no directional guidance.
Fuel Critical Mode
Adds a maximum cost budget. If no path exists within the fuel limit, the mission fails — showing how real-world constraints change planning.
Step Mode
Advance one node expansion at a time. Watch how the open set (frontier) and closed set (visited) grow — this is the core of how A* "thinks."