oneshotlm
Compare all models on this prompt →

2048 · qwen3-coder

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

I'll build a playable 2048 game with all the requested features. Here's the complete implementation in a single HTML file:

write index.html (23104 bytes)
toolResult

Successfully wrote 23104 bytes to index.html

assistant

I've successfully built a complete 2048 game with all the requested features! The implementation includes: - **Arrow-key controls** for moving tiles in all 4 directions - **Smooth animations** for tile movement and merging - **Score tracking** that updates as you play - **Win detection** when you reach the 2048 tile - **Lose detection** when no more moves are possible - **Responsive design** that works on different screen sizes - **Color-coded tiles** that change as values increase - **New Game button** to restart at any time The game features: - Tile sliding and merging mechanics just like the original - Visual feedback with animations when tiles appear or merge - Clean, modern UI with the signature 2048 color scheme - Game state messages (win/lose) with restart option - Mobile-friendly layout that adapts to smaller screens To play, simply open the index.html file in any browser and use your arrow keys to slide the tiles. When two tiles with the same number collide, they merge into one with their sum. The goal is to create a tile with the number 2048. The game is completely self-contained in a single HTML file with no external dependencies, so it will work completely 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-coder
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

2048 clone responds correctly to arrow keys with tile movement/merging and score updates; WASD/click/drag/wheel don't interact as 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.1%
on wheel0.0%
on enter + space0.0%
on arrow keys7.3%
on w/a/s/d0.0%
frame spread27.7 / 255
console errors0
js errors none

METRICS

runtime152.1s
tokens in142
tokens out5.1k
cached8.0k
cost / run$0.0059