oneshotlm
Compare all models on this prompt →

Maze generator & solver · qwen3-vl-32b-instruct

Output generated Cost / run $0.0025 Runtime 73.0s

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

modelqwen3-vl-32b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime73.0s
tokens in7.1k
tokens out4.3k
cached0
cost / run$0.0025
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 (14426 bytes)
toolResult

Successfully wrote 14426 bytes to index.html

assistant

I've created a single-page web application that generates a random maze using the recursive backtracker algorithm and animates pathfinding using both A* and BFS algorithms. The app includes: - A canvas displaying the maze - Buttons to generate a new maze, solve with A*, solve with BFS, or reset - Visual feedback showing the solving process - Color-coded cells for start (blue), end (purple), current position (orange), visited cells (yellow), and the final path (green) The entire application is self-contained in index.html with inline CSS and JavaScript, requiring no external resources or network requests. You can now open index.html in any modern browser to interact with the maze generator and pathfinder.