oneshotlm
Compare all models on this prompt →

Tetris · nova-2-lite-v1

Output generated Cost / run $0.0142 Runtime 61.6s

Prompt for this run

Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.

⛨ 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

runtime61.6s
tokens in8.1k
tokens out4.7k
cached0
cost / run$0.0142
Transcript · 4 messages
user

Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.

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

Successfully wrote 16727 bytes to index.html

assistant
thinking
[REDACTED].

I've created a complete, self-contained Tetris game in a single HTML file! The implementation includes: ✅ All 7 tetromino shapes with proper rotation ✅ Line clearing with scoring system ✅ Increasing speed as you level up ✅ Next-piece preview ✅ Score, level, and lines tracking ✅ Game over screen with restart functionality ✅ Keyboard controls (arrow keys + space) ✅ Visually appealing dark theme with 3D block effects To play: 1. Open the `index.html` file in any modern web browser 2. Use arrow keys to move/rotate pieces 3. Press SPACE for hard drop 4. Clear lines to earn points and level up 5. Try to survive as long as possible! The game features smooth animations, responsive design, and works entirely offline with no external dependencies. The difficulty increases automatically as you clear more lines, making it progressively challenging.