oneshotlm
Compare all models on this prompt →

2048 · gemini-3.1-flash-lite

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
**Developing Core Game Logic**

I'm currently focused on implementing the fundamental mechanics for the 2048 game. This involves coding the tile sliding and merging behaviors, along with establishing the win and lose conditions. My aim is to have these core functions robustly in place before moving on to finer details like animations and UI elements.

**Structuring Game Elements**

My thoughts are now centered on organizing the project structure. I'm outlining the `index.html` to include inline CSS for styling the board and tiles, and JavaScript for the core game logic. A 2D array will represent the grid, with functions for initialization, tile addition, sliding, merging, and state checking.

write index.html (5773 bytes)
toolResult

Successfully wrote 5773 bytes to index.html

assistant

The 2048 game is ready in `index.html`. You can open this file in any web browser to play. **Game Features:** - **Controls**: Use the **Arrow Keys** to slide the tiles. - **Mechanics**: Tiles with the same number merge into one when they collide. A new 2 or 4 tile is added to the board after every move. - **Score Tracking**: The score updates automatically as you merge tiles. - **Game End**: The game detects when no more moves are possible (Game Over). You can open the file by running `open index.html` in your browser or by navigating to the file in your file explorer.

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

modelgemini-3.1-flash-lite
vendorGoogle
harnesspi-agent
generated2026-07-22

EVALUATION

3/5 partial

Basic 2048 grid works with arrow keys sliding tiles and increasing score, but WASD claims changes with no visible movement (likely stale) and no win/lose 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 keys6.3%
on w/a/s/d0.0%
frame spread27.3 / 255
console errors0
js errors none

METRICS

runtime20.1s
tokens in4.7k
tokens out2.6k
cached0
cost / run$0.0050