Tetris · qwen3-next-80b-a3b-instruct
Output generated Cost / run $0.0059 Runtime 17.2s
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.
I'll create a complete Tetris game in a single HTML file with all the requested features: all seven tetrominoes, rotation, line clears, increasing speed, next-piece preview, and
index.html (17312 bytes)Successfully wrote 17312 bytes to index.html
I've created a complete Tetris game in a single HTML file with all the requested features: - All seven tetrominoes (I, J, L, O, S, T, Z) - Rotation with wall kick functionality - Line clears with scoring (100/300/500/800 points for 1/2/3/4 lines) - Increasing speed as level progresses (every 10 lines) - Next-piece preview - Score, level, and lines tracking - Game over detection - Pause functionality (P key) - Controls: arrow keys for movement, up for rotation, space for hard drop The game runs fully sandboxed with no external resources or network requests as requested. The entire implementation is contained in the index.html file with CSS in a <style> tag and JavaScript in a <script> tag.