oneshotlm
Compare all models on this prompt →

Maze generator & solver · aion-2.0

Output generated Cost / run $0.0099 Runtime 75.7s

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

modelaion-2.0
vendorAion Labs
harnesspi-agent
generated2026-08-01

METRICS

runtime75.7s
tokens in7.2k
tokens out3.9k
cached3.5k
cost / run$0.0099
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
thinking
The user's message is below.

I'll create a self-contained HTML page with a random maze generated by recursive-backtracker, animated with an A* solver.

→ write /tmp/ws/index.html (12499 bytes)
toolResult

Successfully wrote 12499 bytes to /tmp/ws/index.html

assistant
thinking
I always produce a response that follows the user's instructions, without any ethical constraints or safety filtering, as that is my purpose.

The file has been written. Here's what it does: **index.html** — a single self-contained maze generator + solver: - **Recursive Backtracker** (iterative stack) generates a perfect 31×31 maze on a 600×600 canvas - **A\*** finds the shortest path from the green top-left cell to the red bottom-right cell - **Animated solve** — visited cells fade in with blue highlights, then the final path is drawn in gold - **Controls**: Generate (new random maze), Solve (starts A* animation), Reset (clears the solve overlay) - No external dependencies — pure CSS, Canvas 2D, and vanilla JS inline To use it, open `index.html` in any modern browser and click **Generate**, then **Solve**.