oneshotlm
Compare all models on this prompt →

2048 · glm-5.3

Output generated Cost / run $0.0239 Runtime 41.5s

Prompt for this run

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 ↗

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

modelglm-5.3
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-27

METRICS

runtime41.5s
tokens in6.8k
tokens out4.0k
cached2.8k
cost / run$0.0239
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
Build the classic 2048 in one file. Use absolute positioning with transforms for smooth animation.
→ write index.html (12500 bytes)
toolResult

Successfully wrote 12500 bytes to index.html

assistant

Done — `index.html` contains a complete, self-contained 2048 game. **Features:** - **Arrow keys / WASD** (plus touch swipe) slide tiles with smooth CSS transform animations - **Merging logic**: tiles slide into empty cells, equal tiles merge once per move with a pop/bump animation - **Score & Best** (best persists via localStorage) with floating "+N" score-gain animation - **Win state** at 2048 with a golden overlay and "Keep Going" option; **lose state** when no moves remain - Classic 2048 color palette, responsive layout that re-measures on resize - "New Game" / "Try Again" button always available