Skip to content
Back to work
2024 · Engineering

Maze Generator

Carve, then solve, in real time

Procedurally generated mazes with an optional BFS solve. Watch a recursive backtracker carve the grid, then resize, regenerate, or race the clock.

A visual algorithms toy: a recursive-backtracker depth-first search carves a perfect maze in real time on an SVG grid.

Flip on solve mode and a breadth-first search highlights the shortest path from entrance to exit. Resize the grid, regenerate, and watch the carve and solve animate step by step.

Initializing experience

osco.dev

000%