oneshotlm
Compare all models on this prompt →

2048 · mimo-v2.5

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 me to build a 2048 game as a single-page web app. Let me create a comprehensive implementation with:

1. A 4x4 grid
2. Arrow key controls for sliding tiles
3. Merging logic (same numbers combine)
4. Smooth CSS animations
5. Score tracking
6. Win state (reaching 2048) and lose state (no moves possible)
7. New game button

I'll write this all into index.html with inline CSS and JS.

I'll build a full 2048 game with all the features you requested.

write /workspace/index.html (14767 bytes)
toolResult

Successfully wrote 14767 bytes to /workspace/index.html

assistant
thinking
The file has been written. Let me verify it's there.

The 2048 game is built and ready at `/workspace/index.html`. Here's what's included: **Gameplay** - Classic 4×4 grid with tile sliding and merging - Arrow keys (↑↓←→) and WASD to move - Touch/swipe support for mobile - Tiles spawn with a 90% chance of 2 and 10% chance of 4 **Visual Polish** - Smooth slide animations for tile movement - Spawn animation (scale from 0) for new tiles - Pop animation when tiles merge - Color-coded tiles (2 through 2048+) with appropriate sizing - Floating "+N" score popup on each merge - Responsive design that works on mobile **Score & State** - Current score and best score (persisted in `localStorage`) - **Win state**: overlay appears when a 2048 tile is created, with "Keep Playing" option to continue past 2048 or start a new game - **Lose state**: overlay when no valid moves remain - "New Game" button always available

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

modelmimo-v2.5
vendorXiaomi · MiMo
harnesspi-agent
generated2026-07-10

EVALUATION

3/5 working

Functional 2048 grid; arrow keys and WASD merge tiles and update score, click/drag/wheel do nothing (expected).

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 keys0.1%
on w/a/s/d3.8%
frame spread27.2 / 255
console errors0
js errors none

METRICS

runtime48.5s
tokens in5.7k
tokens out5.2k
cached2.7k
cost / run$0.0023