Lab

Small interactive pieces, built to be poked at.

Grid pathfinding

Three searches over the same grid — the approach behind ghost chase behaviour in a Pac-Man style game. Rendered on canvas.

Cells explored 269Route cost 28

Ignores terrain cost entirely — expands evenly in every direction and returns the route with the fewest cells. Drag on the grid to paint, drag the orange dot to move the target. Draw some slow terrain, then switch between the three to compare cells explored against route cost.