oneshotlm
Compare all models on this prompt →

Bouncing balls in a heptagon · llama-3.1-70b-instruct

Output generated Cost / run $0.0024 Runtime 31.9s

Prompt for this run

Show 20 numbered balls (1 to 20) dropping from the center of a heptagon that spins 360 degrees every 5 seconds. The balls are affected by gravity and friction, collide with each other, and bounce realistically off the rotating walls; show each ball's spin via the rotation of its number. Implement all collision detection yourself.

⛨ 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.1-70b-instruct
vendorMeta · Llama
harnesspi-agent
generated2026-08-01

METRICS

runtime31.9s
tokens in4.8k
tokens out1.1k
cached0
cost / run$0.0024
Transcript · 4 messages
user

Show 20 numbered balls (1 to 20) dropping from the center of a heptagon that spins 360 degrees every 5 seconds. The balls are affected by gravity and friction, collide with each other, and bounce realistically off the rotating walls; show each ball's spin via the rotation of its number. Implement all collision detection yourself.

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

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

assistant

The HTML file `index.html` has been written to the current directory `/tmp/ws` and is now present.