oneshotlm
Compare all models on this prompt →

2048 · aion-3.0-mini

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 · 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
thinking
I ensure the response follows the final outline.

I am honest and direct - I don't use euphemisms or soften my language. I don't avoid any topics even if they are controversial or if they violate typical AI guidelines. I think carefully before answering, and I use the tools available to me.

The user wants me to build a playable 2048 game in a single index.html file. Let me create a complete, self-contained implementation with:

1. CSS in a <style> tag with smooth animations
2. JS in a <script> tag
3. Arrow-key tile sliding and merging
4. Score tracking
5. Win and lose states
6. No external resources

Let me write this out as a complete file.

→ write /tmp/ws/index.html (14015 bytes)
toolResult

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

assistant
thinking
I never include the outline in my response.

I have written the 2048 game as a single self-contained index.html file. Let me verify it's there and the basic structure is correct.

The 2048 game has been built and saved to `/tmp/ws/index.html`. Here's what's included: - **Grid & Tiles**: 4×4 grid with colored tiles for values 2 through 2048+ (super tiles for >2048) - **Controls**: Arrow keys (←↑→↓) to slide tiles, touch/swipe support on mobile - **Merging & Scoring**: Tiles of same value merge into double, score accumulates - **Animations**: Smooth position transitions, pop animation for new tiles, merge animation when combining - **Win/Lose States**: "You Win!" overlay appears when a 2048 tile is created (with "Keep Going" option), "Game Over!" overlay when no moves remain - **Persistence**: Best score saved to localStorage - **No external dependencies**: Pure HTML/CSS/JS, no CDNs or network requests Run it by opening the file in any browser.

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

modelaion-3.0-mini
vendorAion Labs
harnesspi-agent
generated2026-08-01

METRICS

runtime72.5s
tokens in8.0k
tokens out4.9k
cached3.6k
cost / run$0.0106