gpt-5.5-webdev· OpenAI
Arena WebDev Preferences (2026)
Create a 2D billiards game with cue stick aiming, power slider, realistic ball physics,…
- User
Create a 2D billiards game with cue stick aiming, power slider, realistic ball physics, pocket detection, ball spin effects, and smooth collision animations.
- Assistant
Implemented a complete 2D billiards game in
src/App.tsx.What is included:
- Canvas-rendered billiards table with rails, pockets, felt texture, diamonds, cue stick, and numbered balls
- Mouse-based cue aiming with a dashed shot guide
- Power slider and shoot button
- Click/tap release shooting on the table
- Real-time ball physics with friction, rail rebounds, elastic ball collisions, and overlap correction
- Pocket detection for all six pockets
- Cue ball scratch handling and automatic respawn after motion settles
- Side spin and follow/draw controls that affect drift, rail kick, and collision throw
- Smooth requestAnimationFrame animation loop
- Shot, pocketed, and remaining ball counters
- Reset game control
Verification:
- Ran
npm run buildvia the build tool successfully.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.