oneshotlm
Compare all models on this prompt →

Maze generator & solver · grok-4.3

Output generated Cost / run $0.0124 Runtime 40.8s

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

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

METRICS

runtime40.8s
tokens in11k
tokens out2.5k
cached7.1k
cost / run$0.0124
Transcript · 8 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 task is: "Build a single-page web app and write it ALL into one self-contained file named index.html in the current directory: CSS in a <style> tag, JS in a <script> tag, inline — do not create se...
→ bash {"command":"ls -la /workspace"}
toolResult

total 4 drwxrwxrwx 2 node node 64 Jul 22 18:07 . drwxr-xr-x 1 root root 4096 Jul 22 18:07 ..

assistant
thinking
The workspace is empty. I need to create a single self-contained index.html file with a canvas-based random maze generated via recursive-backtracker, and then animate an A* or BFS solver from start to...
→ write /workspace/index.html (6966 bytes)
toolResult

Successfully wrote 6966 bytes to /workspace/index.html

assistant
thinking
The file has been created successfully. Let's verify it's present and complete.
→ bash {"command":"ls -la /workspace && wc -l /workspace/index.html"}
toolResult

total 12 drwxrwxrwx 3 node node 96 Jul 22 18:07 . drwxr-xr-x 1 root root 4096 Jul 22 18:07 .. -rw-r--r-- 1 node node 6969 Jul 22 18:07 index.html 211 /workspace/index.html

assistant
thinking
The file has been created successfully. All code is self-contained in one HTML file with embedded CSS and JS. It implements:

index.html present and ready.