Algorithm Arcade

Everything runs in your browser. Switch tabs below 👇

Goal: find the shortest path on a grid, avoiding walls.

How it works

A* explores nodes with priority f(n)=g(n)+h(n) where g is distance from start and h is a heuristic (here: Manhattan distance). With an admissible h, A* returns an optimal path.

Why it’s used: games, maps, routing.