oneshotlm
Compare all models on this prompt →

Bouncing balls in a heptagon · mistral-large-2512

Output generated Cost / run $0.0066 Runtime 37.2s

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

modelmistral-large-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime37.2s
tokens in5.8k
tokens out2.9k
cached1.4k
cost / run$0.0066
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 (10328 bytes)
toolResult

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

assistant

The single-file, self-contained web app is ready at `/tmp/ws/index.html`. Open it in any modern browser to see: - A spinning heptagon (7-sided polygon) completing a full 360° rotation every 5 seconds - 20 numbered balls (1–20) dropping from the center with gravity and friction - Realistic ball-to-ball collisions and ball-to-wall bounces (all collision detection implemented manually) - Each ball’s spin visualized by the rotation of its number - No external resources—runs fully offline