oneshotlm
Compare all models on this prompt →

2048 · ring-2.6-1t

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
thinking
The user wants a fully playable 2048 game in a single HTML file. Let me build a comprehensive implementation with:

1. 4x4 grid with tile sliding and merging
2. Arrow key controls
3. Smooth CSS animations for tile movement
4. Score tracking
5. Win state (reaching 2048)
6. Lose state (no more valid moves)
7. New tile spawning after each move
8. All self-contained in one HTML file - no external resources

Let me design this carefully with clean animations and a polished UI.

Building a fully-featured 2048 game with animations, score, and win/lose states.

write /tmp/ws/index.html (13179 bytes)
toolResult

Successfully wrote 13179 bytes to /tmp/ws/index.html

assistant
thinking
The file has been written successfully. Let me verify it's in place and looks correct by reading it back quickly.

Done! The file is at `/tmp/ws/index.html`. Here's what it includes: - **4×4 grid** with smooth CSS transition animations on tile sliding - **Arrow key support** (↑↓←→) plus WASD and swipe support for touch devices - **Score tracking** with pulse animations on score changes - **Best score** persisted via `localStorage` - **Win state** — triggers when you reach 2048 (with option to keep playing) - **Lose state** — triggers when no valid moves remain - **Responsive design** that scales down for mobile screens - **Zero dependencies** — fully self-contained, no CDN or network requests

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

modelring-2.6-1t
vendorinclusionai
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

2048 game responds to arrow keys and WASD with tile sliding, merging, and score updates; click/drag/wheel/enter+space do nothing.

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 keys7.8%
on w/a/s/d5.3%
frame spread27.6 / 255
console errors0
js errors none

METRICS

runtime42.4s
tokens in8.4k
tokens out5.3k
cached0
cost / run$0.0040