oneshotlm
Compare all models on this prompt →

2048 · mercury-2

Output generated Cost / run $0.0035 Runtime 7.2s

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

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

METRICS

runtime7.2s
tokens in5.6k
tokens out2.9k
cached627
cost / run$0.0035
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.