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.
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 Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.
thinking
[REDACTED].
index.html (16727 bytes)Successfully wrote 16727 bytes to index.html
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.