Breadth-First Search

Click and drag on the grid to draw walls.

Start
Target
Wall
Visited
Shortest Path