oneshotlm
Compare all models on this prompt →

Bouncing balls in a heptagon · mercury-2

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 ↗
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 (5795 bytes)
toolResult

Successfully wrote 5795 bytes to index.html

assistant

The **index.html** file has been created in the current directory. It contains a self‑contained web app that: * Draws a rotating heptagon (full spin every 5 seconds). * Spawns 20 numbered balls at the centre, each affected by gravity, friction, and mutual collisions. * Handles ball‑ball and ball‑wall collisions with custom physics. * Shows each ball’s spin by rotating its number as it moves. Open **index.html** in a browser to see the simulation.

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

modelmercury-2
vendorInception
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Heptagon spins and balls render with numbers, but balls stay clustered near center instead of falling/settling under gravity.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion4.3%
on click4.9%
on drag4.0%
on wheel4.9%
on enter + space4.3%
on arrow keys4.4%
on w/a/s/d4.6%
frame spread16.4 / 255
console errors0
js errors none

METRICS

runtime8.4s
tokens in5.1k
tokens out2.9k
cached1.8k
cost / run$0.0031