LLM Test Prompts

All prompts › Simulations & physics

20 numbered balls in a spinning heptagon (KCORES)

Simulations & physicshardbuild testPrompt in EnglishPythontkinterphysicsrubric

What it tests: Exact requirement recovery (20 balls, given colours, numbers, spin), hand-written collision detection and response against rotating walls, ball-ball collisions, friction-driven spin, and a library whitelist (tkinter, math, numpy, dataclasses, typing, sys; no pygame).

Prompt length: 1,252 characters, roughly 310 tokens (estimate). · Scores for about 20 models in the source's rubric table ↗

Write a Python program that shows 20 balls bouncing inside a spinning heptagon: - All balls have the same radius. - All balls have a number on it from 1 to 20. …

The source has no licence that allows copying, so only a short excerpt is shown here. The full prompt is one click away at the source.

How to grade it

Use the published 18-item rubric (5 points each, 90 in total): one file; only the allowed libraries (−2 for extras such as random, 0 for a physics library); 20 equal balls; numbers 1–20; drop from the centre; all 20 colours; ball-wall and ball-ball collisions; friction spin; gravity always downwards; bounce height above the ball radius but below the heptagon radius; numbers rotate with the spin; no overlap after release; no ball leaves the heptagon; near-3D look; seven equal sides; 360° per 5 s; smooth animation. A program that doesn't run or isn't animated scores 0.

Scorecard tick what the model got right: 0/17

Runs in your browser; nothing is saved or sent.

0/17

Where models usually fail

Balls escape through the rotating walls (wall velocity ignored in the collision response); importing random (costs points); rotation speed off by a factor; numbers that don't rotate; balls sinking into each other.

Running it

KCORES runs each model 3 times, keeps the best run and scores it visually at 2K full screen. Temperature 0 makes your own runs comparable.

Source

Testing a local model? Check first whether it fits your hardware with Can I run this LLM?

More in Simulations & physics