Maze generator & solver · gpt-4.1-mini
Generate a random maze with the recursive-backtracker algorithm on a canvas, then animate an A-star or BFS solver finding the path from start to finish.
transcript · 4 messages
Generate a random maze with the recursive-backtracker algorithm on a canvas, then animate an A-star or BFS solver finding the path from start to finish.
index.html (5590 bytes)Successfully wrote 5590 bytes to index.html
I have created a self-contained single HTML file named index.html which generates a random maze using the recursive backtracker algorithm on a canvas, then animates a BFS solver finding the path from start (top-left) to finish (bottom-right). Click the canvas to generate and solve a new maze. Would you like me to display the code?
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
EVALUATION
Maze generation and A*/BFS solver animate correctly with visited (blue) and frontier/path (yellow) cells, progressing over time regardless of input.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.