oneshotlm
Compare all models on this prompt →

2048 · qwen3.5-122b-a10b

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 · 6 messages
user

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

assistant
thinking
The user wants me to build a complete 2048 game in a single HTML file. Let me create a fully functional implementation with:

1. The classic 4x4 grid
2. Arrow key controls for sliding tiles
3. Tile merging (same numbers combine)
4. Score tracking
5. Win state (reaching 2048)
6. Lose state (no moves available)
7. Smooth animations using CSS transitions
8. All inline - no external resources

Let me write this comprehensive game.
write index.html (15047 bytes)
toolResult

Successfully wrote 15047 bytes to index.html

assistant
thinking
The file has been created successfully. Let me verify it exists and is complete.
bash {"command":"ls -la index.html && head -5 index.html && echo \"...\" && tail -5 index.html"}
toolResult

-rw-r--r--. 1 node node 15047 Aug 1 20:05 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ... // Initialize on load initGame(); </script> </body> </html>

assistant
thinking
The file is complete. Let me summarize what I've built for the user.

Done! Created `index.html` with a fully playable 2048 game featuring: - **Arrow key controls** - Slide tiles in all 4 directions - **Tile merging** - Matching numbers combine (2+2=4, 4+4=8, etc.) - **Smooth animations** - CSS transitions for sliding and scaling on tile appearance/merging - **Score tracking** - Current score + best score (persisted to localStorage) - **Win state** - Overlay when you reach 2048 - **Lose state** - Game over overlay when no moves remain - **Touch support** - Swipe gestures for mobile play - **New Game button** - Reset anytime Open `index.html` in a browser to play. No external dependencies—everything runs offline.

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.5-122b-a10b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

2048 game responds to arrow keys with tile movement and score increase, but no visible win/lose UI shown.

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 + space0.0%
on arrow keys4.7%
on w/a/s/d0.0%
frame spread34.6 / 255
console errors0
js errors none

METRICS

runtime29.8s
tokens in14k
tokens out4.6k
cached0
cost / run$0.0130