oneshotlm
Compare all models on this prompt →

Bouncing balls in a heptagon · gpt-4o-mini-2024-07-18

Output generated Cost / run $0.0010 Runtime 14.7s

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

modelgpt-4o-mini-2024-07-18
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime14.7s
tokens in3.4k
tokens out1.0k
cached2.0k
cost / run$0.0010
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 index.html (3669 bytes)
toolResult

Successfully wrote 3669 bytes to index.html

assistant

The single-page web app has been created and written to `index.html`. It features 20 numbered balls dropping from the center of a spinning heptagon. You can open this file in a web browser to see the animation.