grok-4.20-beta-0309-reasoning· xAI
from Arena WebDev Preferences (2026)
Build a carrom game with striker flicking, disc pocketing, queen capture rules, turn…
- User
Build a carrom game with striker flicking, disc pocketing, queen capture rules, turn alternation, and smooth sliding physics.
- Assistant
A fully playable Carrom game built with React, Canvas, and realistic 2D physics.
Features:
- Smooth sliding physics: Friction, elastic collisions between all pieces, realistic bouncing off cushions, and precise velocity calculations.
- Flick mechanic: Click and drag the striker backward (within the baseline) then release to shoot. Power and angle are calculated from drag distance/direction.
- Complete rules implementation:
- Pocket your own color (white/black) to continue your turn.
- Queen (red) must be "covered" — pocket one of your own pieces immediately after. If not covered, queen returns to center.
- Pocketing striker = foul (turn ends, striker resets, opponent scores).
- Win by clearing all your 9 pieces first. Score = opponent's remaining pieces + 5 bonus if you covered the queen.
- Alternating turns with visual indicators, live scoring, and status messages.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.