oneshotlm
Compare all models on this prompt →

2048 · kat-coder-air-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 · 6 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 /tmp/ws/index.html (19455 bytes)
toolResult

Successfully wrote 19455 bytes to /tmp/ws/index.html

assistant

→ bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 19455 Aug 1 20:07 /tmp/ws/index.html

assistant

The file is at `/tmp/ws/index.html`. Here's what's included: - **Arrow-key sliding & merging** — full 2048 logic with proper merge detection - **Smooth CSS transitions** — tiles slide 120ms between positions - **Animations** — `appear` (scale-in) for new tiles, `pop` (scale-bounce) for merges - **Score & best score** — best score persisted to `localStorage` - **Win state** — overlay on reaching 2048 - **Lose state** — overlay when no moves remain - **Touch/swipe support** for mobile - **New Game** button to restart anytime - **No external dependencies** — fully self-contained, runs sandboxed

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

modelkat-coder-air-v2.5
vendorKwaipilot
harnesspi-agent
generated2026-08-01

METRICS

runtime36.4s
tokens in18k
tokens out6.9k
cached11k
cost / run$0.0055