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.
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
METRICS
Transcript · 4 messages
Build a playable 2048 game with arrow-key tile sliding and merging, smooth animations, a score, and win and lose states.
index.html (6779 bytes)Successfully wrote 6779 bytes to index.html
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.