oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗

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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime27.6s
tokens in4.2k
tokens out1.9k
cached1.0k
cost / run$0.0044
Transcript · 4 messages
user

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.

assistant
→ write index.html (5590 bytes)
toolResult

Successfully wrote 5590 bytes to index.html

assistant

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?