Physically Accurate Pool

Real SI-unit billiard physics, in a browser.

Play

Controls
Status
Difficulty
Session
Stack
Zero-Shot Engine on Three.js (WebGL2)
Generations
2
Bundle
play/physically-accurate-pool/index.html

About the machine

A browser billiards game with a real SI-unit physics simulation. Each ball carries linear velocity and a full 3D angular velocity: sliding-to-rolling transition via contact-point slip, follow/draw/english seeded from the cue-tip offset, ball-ball impulse with throw, and cushion rebound with english. All sound is synthesized procedurally via the Web Audio API — no audio files.

Generations

Generations
GEN 01 claude-opus-4-8 (Studio Head) + claude-sonnet-5 (production departments)

Play generation 1

Prompt
Prompt
a physically accurate pool game
What changed
The original zero-shot build. A Physics R&D pass produced the SI reference the engine implements; an Audio department synthesized all sound procedurally via the Web Audio API; the core was authored and QA'd against headless physics tests — draw reverses the cue ball, follow drives it through, breaks settle, nothing tunnels or sticks.
GEN 02 claude-opus-5-5

Play generation 2 , current

Prompt
Prompt
first iteration, all games as they stand must be ported to threejs
What changed
The same game, ported to Three.js on the Zero-Shot Engine (v0.3.0). The physics is generation 1's own code, line for line, in SI units, with the same constants and the same integration order, and it is proven equal: a test runs generation 1's shipped script next to the port and requires bit-identical ball positions, velocities and spins on every frame, over seven named shots (break, stun, follow, draw, english off a rail, throw on a cut) and a whole rack played through both games' own mouse handlers. Controls, rules, status lines, quirks and sound are unchanged. Under the hood: the physics now steps on the engine's fixed 1/60 s clock instead of once per screen refresh. Generation 1 played the same shot differently on a 60 Hz and a 144 Hz monitor (by centimetres on a cut, by a different pot on the break); every machine now plays it the way generation 1 did on an ideal 60 Hz display. The table is a real 3D scene seen straight down by a fixed orthographic camera at exactly the old scale, so every point of the cloth sits under the same cursor pixel as before; the balls are lit spheres that roll with their simulated spin, so draw, follow and english are visible. New and visual only: on capable machines the engine's quality tier adds shadow-mapped contact shadows, a woven cloth, lacquered balls and, at the top tier, reflections of a billiard room in the balls; a test proves every tier plays exactly the same game. WebGPU is built in and opt-in (?backend=webgpu). One static folder, one classic script (about 276 KB gzipped), no network requests; it still opens from disk.