Pathlight

An interactive pathfinding visualizer for grid search algorithms.

20ms
no run yet

Click or drag across empty cells to draw with the active tool (walls, or weighted terrain that costs more to cross); click a cell already drawn on to erase it. Use Place start… / Place end…, then click a cell, to move either marker. Breadth-First Search, Depth-First Search, and Bidirectional Search treat every step as equally costly, so they ignore weighted terrain entirely — Dijkstra and A* are the ones that route around it. The grid is keyboard-operable too: focus it and use the arrow keys to move, Enter or Space to draw, erase, or place on the focused cell. Undo reverses the last wall/terrain edit, start/end placement, or clear (see below).