← LAB
Pathfinding
Jun 6, 2026BFS expands in perfect circles of equal cost — it always finds the shortest path, but it looks in every direction. A* adds a heuristic (straight-line distance to the goal) that focuses the search. Same guarantee, far fewer cells visited on most inputs.
0 visited
Green = start · Orange = end · Dim = visited · Bright = path. Draw walls then hit RUN.