oneshotlm
Compare all models on this prompt →

2048 · qwen3-coder-flash

Build a playable 2048 game with arrow-key tile sliding and merging, smooth animations, a score, and win and lose states.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

Build a playable 2048 game with arrow-key tile sliding and merging, smooth animations, a score, and win and lose states.

assistant

# 2048 Game Implementation I'll create a complete, playable 2048 game with all the requested features in a single HTML file. The game will include smooth animations, keyboard controls, score tracking, and win/lose states.

write index.html (23547 bytes)
toolResult

Successfully wrote 23547 bytes to index.html

assistant

I've created a complete, playable 2048 game in a single HTML file with all the requested features: 1. **Game Mechanics**: - Smooth tile sliding and merging with keyboard controls (arrow keys) - Score tracking and best score persistence using localStorage - Win condition (reaching 2048) and lose condition (no more moves) - Visual feedback for tile movements and merges 2. **Visual Design**: - Modern dark theme with gradient background - Color-coded tiles based on their values - Responsive layout that works on mobile and desktop - Clean, intuitive interface with clear instructions 3. **User Experience**: - Win/lose screens with messages - New game button to restart - Score and best score displays - Smooth animations for tile movements - Visual feedback for game events The game is completely self-contained in a single index.html file with no external dependencies. All CSS is inline in a style tag and all JavaScript is in a script tag at the bottom of the page. To play: 1. Use arrow keys to move tiles in four directions 2. When two tiles with the same number collide, they merge into one 3. Try to reach the 2048 tile! 4. The game tracks your score and best score automatically The game includes proper game state management, win detection, and loss detection with appropriate visual feedback.

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelqwen3-coder-flash
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

2048 clone responds to arrow keys with tile movement, merging, and score updates; WASD and pointer inputs don't affect gameplay.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space4.0%
on arrow keys4.7%
on w/a/s/d0.0%
frame spread37.7 / 255
console errors0
js errors none

METRICS

runtime60.3s
tokens in6.7k
tokens out5.2k
cached1.5k
cost / run$0.0065