All tests

Exhibit No. 002 · Animation

Ball bouncing in a spinning hexagon

The physics test that went viral in early 2025: a ball with gravity and friction bouncing inside a rotating hexagon.

Prompt

> Write an HTML page (single file, canvas + JS) that shows a ball bouncing inside a spinning hexagon. The ball should be affected by gravity and friction, and it must bounce off the rotating walls realistically.

What it tests

Collision handling against moving walls — the wall velocity at the contact point has to be part of the bounce.

Origin

Flavio Adamo (original was a Python version) · 2025

Prompt wording adapted from the original.

Difficulty

●●●

Results

Claude Opus 5.5

Run on 2026-10-19Open the raw answer
Test conditions

One attempt per test, with no edits after running. Where a first attempt didn’t work, the test was answered once more and the exhibit says so; answers that still don’t work are not shown. Run inside a Claude Code agent session, which includes its own system prompt, rather than the raw API.

All results for Claude Opus 5.5

Save the answer as a .html file and open it in a browser to compare it with the one above.

More tests in this category