oneshotlm
Compare all models on this prompt →

Maze generator & solver · llama-3.3-70b-instruct

Output generated Cost / run $0.0014 Runtime 36.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

modelllama-3.3-70b-instruct
vendorMeta · Llama
harnesspi-agent
generated2026-08-01

METRICS

runtime36.7s
tokens in5.0k
tokens out1.8k
cached0
cost / run$0.0014
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 (4295 bytes)
toolResult

Successfully wrote 4295 bytes to index.html

assistant

This code will generate a random maze using the recursive-backtracker algorithm and then animate an A-star solver finding the path from start to finish. The maze is displayed on a canvas element in the HTML file. The solver uses a breadth-first search (BFS) algorithm to find the shortest path. The animation is created by drawing the path on the canvas and using the `setTimeout` function to introduce a delay between each step of the animation.