Tetris · minimax-m2.1
Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.
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
The user wants me to build a playable Tetris game in a single HTML file with: 1. Canvas-based rendering 2. All seven tetrominoes (I, O, T, S, Z, J, L) 3. Rotation system 4. Line clears 5. Increasing speed as the game progresses 6. Next-piece preview 7. Score tracking Let me create a complete, self-contained HTML file with all the game logic.
/tmp/ws/index.html (17244 bytes)Successfully wrote 17244 bytes to /tmp/ws/index.html
thinking
I've created the Tetris game. Let me verify that the file exists and check its contents to make sure everything is correct.
I've created a fully functional Tetris game in a single self-contained HTML file. The game includes: **Features:** - ✅ All 7 tetrominoes (I, O, T, S, Z, J, L) with classic colors - ✅ Piece rotation with wall kicks (attempts to nudge piece if rotation hits a wall) - ✅ Line clearing with scoring (100/300/500/800 points for 1/2/3/4 lines) - ✅ Increasing speed (level up every 10 lines, dropping interval by 100ms per level, min 100ms) - ✅ Next-piece preview panel - ✅ Score, level, and lines tracking - ✅ Game over detection and restart functionality - ✅ Pause feature (press P) **Controls:** - **← / →** - Move left/right - **↑** - Rotate - **↓** - Soft drop (+1 point per drop) - **Space** - Hard drop (instant drop, +2 points per row dropped) - **P** - Pause/unpause The game has a retro cyberpunk aesthetic with neon colors, glowing effects, and a clean UI. The board uses a 10x20 grid rendered on a canvas with no external dependencies.
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
EVALUATION
Functional Tetris with falling pieces, rotation, scoring, next-piece preview, responding correctly to keyboard input.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.