Tetris · qwen3-30b-a3b-instruct-2507
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.
I'll create a complete standalone Tetris game in a single HTML file with embedded CSS and JavaScript. The game will include all seven tetrominoes, rotation, line clearing, increasing speed, next-piece preview, and score tracking.
index.html (18423 bytes)Successfully wrote 18423 bytes to index.html
I've created a complete standalone Tetris game in a single HTML file with all the requested features: 1. All seven tetrominoes (I, J, L, O, S, T, Z) 2. Rotation mechanics with collision detection and adjustment 3. Line clearing with proper scoring 4. Increasing speed as levels progress 5. Next-piece preview display 6. Score, level, and lines counter 7. Game over screen with restart functionality 8. Pause functionality (press P) 9. Controls display 10. Responsive design with canvas-based rendering The game is fully self-contained with no external dependencies, using pure HTML, CSS, and JavaScript. All graphics are drawn directly on the canvas using the provided block size and colors. The game loop handles timing, movement, rotation, and collision detection with proper feedback. You can play the game by: - Using arrow keys to move left/right and down - Pressing up arrow to rotate clockwise - Pressing space for hard drop - Pressing P to pause - Clicking "Play Again" to restart after game over The game features increasing difficulty with speed that accelerates as you level up, and you earn bonus points for hard drops.
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 piece movement, hard drop, score/next preview, but no line clears observed.
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.