p5.js
Path Finding Playground
Compare Flood Fill and A* as they search through hand-drawn grid obstacles.
Open fullscreenAbout this sketch
This interactive sketch visualizes grid-based path finding with selectable Flood Fill and A* search modes. Left-drag to draw walls, right-drag to erase, then press S or Run to watch the chosen algorithm explore from the red start cell to the green target. Try building narrow corridors or dead ends and compare how the cyan frontier, blue visited cells, and magenta final path change between algorithms.