oneshotlm
Compare all models on this prompt →

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.

⛨ 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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime51.1s
tokens in6.4k
tokens out4.2k
cached1.0k
cost / run$0.0090
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 (13444 bytes)
toolResult

Successfully wrote 13444 bytes to index.html

assistant

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!