oneshotlm
Compare all models on this prompt →

Maze generator & solver · gpt-4.1-nano

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 ↗
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 (5480 bytes)
toolResult

Successfully wrote 5480 bytes to index.html

assistant

I have generated a complete, self-contained `index.html` file. It creates a maze with the recursive-backtracker algorithm on a canvas and animates an BFS solver finding the path from the start to the finish. You can open this file in a web browser to see the animation.

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-nano
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Maze generates via recursive backtracker and A*/BFS solver visibly explores with yellow/red visited cells and blue marker.

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.

idle motion0.3%
on click5.1%
on drag2.0%
on wheel3.1%
on enter + space5.2%
on arrow keys13.7%
on w/a/s/d7.7%
frame spread38.5 / 255
console errors0
js errors none

METRICS

runtime10.9s
tokens in4.2k
tokens out2.0k
cached1.0k
cost / run$0.0011