Maze generator & solver · gpt-4.1-mini
Output generated Cost / run $0.0044 Runtime 27.6s
Prompt for this run
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.
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
METRICS
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?