oneshotlm
Compare all models on this prompt →

Maze generator & solver · gpt-5.6-luna-pro

Output generated Cost / run $0.0452 Runtime 59.5s

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-5.6-luna-pro
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime59.5s
tokens in39k
tokens out11k
cached19k
cost / run$0.0452
Transcript · 6 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
→ read {"path":"/tmp/ws/index.html","offset":1,"limit":2000}
toolResult

ENOENT: no such file or directory, access '/tmp/ws/index.html'

assistant
thinking
**Creating a polished SPA**

I need to create a polished single-page application (SPA). It seems I might not need to inspect as much. I’ll write comprehensive HTML to include an animated maze generation and solving controls. I’m thinking of implementing a recursive backtracker with iterative animation, ensuring the grid is responsive on the canvas, and including start and finish points using BFS or A* algorithms. I need to focus on canvas drawing and UI while ensuring there are no external dependencies. So, let’s get started!
→ write /tmp/ws/index.html (12535 bytes)
toolResult

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

assistant

Created `/tmp/ws/index.html` with: - Recursive-backtracker maze generation - Canvas-based visualization - Animated A* and BFS solving - Adjustable grid size and animation speed - Start/finish markers - Visited-cell and shortest-path animations - Responsive controls and layout - Fully self-contained HTML with inline CSS and JavaScript