Interactive Learning

Learn Pathfinding Algorithms Interactively

A visual, hands-on textbook for understanding how computers navigate through space. Draw maps, run algorithms, and watch every decision happen in real time.

What you'll find here

Everything you need to truly understand pathfinding — not just memorise it.

Interactive Grids

Click and drag to draw walls, place terrain, and reposition start and goal nodes. Your map, your rules.

Step-by-Step Traces

Scrub a slider through every decision the algorithm makes — see exactly which nodes are explored and why.

Algorithm Comparison

Understand how A*, Dijkstra, and BFS differ in their search strategies on the same map.

Algorithms

Start with A*, then explore the broader family of graph search algorithms.

Depth-First Search

Coming Soon

Dives deep before backtracking. Not optimal, but illustrates how graph traversal fundamentally works.

O(V + E)

Breadth-First Search

Coming Soon

The simplest pathfinder. Explores layer by layer and finds the shortest path on unweighted graphs.

O(V + E)

Dijkstra's

Coming Soon

A* without a heuristic. Explores in all directions equally, guaranteed to find the optimal path on weighted graphs.

O(V log V) Optimal

A* Algorithm

Available

The gold standard for single-source pathfinding. Combines actual cost and a heuristic to find the shortest path efficiently.

O(b^d) OptimalExplore

Anytime Weighted A* (AWA*)

Available

Finds a valid path immediately using an inflated heuristic, then improves it phase-by-phase until the optimal solution is proven.

O(b^d) OptimalExplore

How it works

01

Choose an algorithm

Pick from our growing library of pathfinding algorithms, each with its own tutorial page.

02

Draw your map

Place walls, terrain, start, and goal on the interactive grid. Change it at any time.

03

Step through the trace

Hit Run, then drag the slider or press Play to watch every decision unfold step by step.