2048 · gpt-4.1-mini
Output generated Cost / run $0.0090 Runtime 51.1s
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 (13444 bytes)Successfully wrote 13444 bytes to index.html
I have built a fully playable 2048 game in a single file named index.html. It includes arrow key controls for sliding and merging tiles, smooth animations, a score display, and messages for win (reaching 2048) and game over states. You can open index.html in a browser to play. Let me know if you want any changes or enhancements!