oneshotlm
Compare all models on this prompt →

2048 · nova-2-lite-v1

Output generated Cost / run $0.0386 Runtime 91.4s

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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime91.4s
tokens in21k
tokens out13k
cached0
cost / run$0.0386
Transcript · 6 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
[REDACTED].
→ write index.html (22500 bytes)
toolResult

Successfully wrote 22500 bytes to index.html

assistant
thinking
[REDACTED].
→ write index.html (22500 bytes)
toolResult

Successfully wrote 22500 bytes to index.html

assistant
thinking
[REDACTED].

I've created a complete, self-contained 2048 game in a single HTML file. The implementation includes: 1. **Arrow key controls** for moving tiles 2. **Touch swipe support** for mobile devices 3. **Smooth animations** for tile movement and merging 4. **Score tracking** with local storage for best score 5. **Win condition** (reaching 2048) 6. **Game over detection** when no moves remain 7. **Responsive design** that works on different screen sizes 8. **Visual feedback** with color-coded tiles and merge animations The game is fully playable with all requested features. You can: - Use arrow keys to move tiles - Swipe on touch devices - See your current score and best score - Get "You Win!" when reaching 2048 - Get "Game Over!" when no moves remain - Restart at any time with the New Game button The implementation uses only vanilla JavaScript, CSS, and HTML with no external dependencies. All styles and logic are contained in a single file as requested. To play the game, simply open the `index.html` file in any modern web browser.