oneshotlm
Compare all models on this prompt →

2048 · mercury-2

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
write index.html (6779 bytes)
toolResult

Successfully wrote 6779 bytes to index.html

assistant

The **2048** game has been created as a single self‑contained file `index.html` in the current directory. It includes: * Full HTML markup with embedded CSS (style tag) and JavaScript (script tag) – no external resources. * Arrow‑key controls for moving tiles. * Smooth slide/merge animations via CSS transitions. * A live score display. * Win detection (2048 tile) and game‑over detection with overlay messages and a restart button. You can open `index.html` in any modern browser to play the game.

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

modelmercury-2
vendorInception
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

2048 grid responds to arrow keys with tile merges and score increase, but grid appears clipped/incomplete on screen.

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 + space16.9%
on arrow keys12.8%
on w/a/s/d0.0%
frame spread25.6 / 255
console errors0
js errors none

METRICS

runtime7.2s
tokens in5.6k
tokens out2.9k
cached627
cost / run$0.0035