A Ball in a Rotating Hexagon · Astra vs Sol
Two models build offline HTML demos of gravity and collisions inside a spinning hexagon. Each simulation was checked at 1,250 sampled positions.
What did each AI build?
- GPT-6.2 Astra Max
- 31m 29s
Builds a canvas simulation with controls and on-screen readings. The minimum sampled wall clearance was about 1.01 px.
- GPT-6.2 Sol Max
- 8m 51s
Places a glowing ball inside a rotating hexagon on a dark grid, with controls below the canvas. The minimum sampled wall clearance was about 0.02 px.
Prompt and method
The check read each ball’s position and radius plus the six vertices through the demo’s own hook. No sampled position crossed the boundary during 20 seconds per demo. Both included pause, reset, and a spin-speed slider.
Read the original prompt
Save a single offline HTML file named hexagon.html. Show a ball falling and bouncing inside a steadily rotating regular hexagon. Account for gravity, energy loss and the motion of the wall at impact, keeping the entire ball inside the shape. Add pause and reset controls and a spin-speed slider. Expose window.readSimulation() returning {ball: {x, y, radius}, vertices: [{x, y}, ...]} in canvas coordinates for verification. Use inline HTML, CSS and JavaScript.