oneshotlm
Compare all models on this prompt →

Tetris · qwen3-vl-8b-instruct

Output generated Cost / run $0.0030 Runtime 36.8s

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

modelqwen3-vl-8b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime36.8s
tokens in7.5k
tokens out4.7k
cached0
cost / run$0.0030
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

I'll build a complete Tetris game with all the requested features. Let me create a single HTML file that includes CSS for styling and JavaScript for game logic.

→ write index.html (17116 bytes)
toolResult

Successfully wrote 17116 bytes to index.html

assistant

I've created a complete 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 of pieces 3. Line clearing functionality 4. Increasing speed as level increases 5. Next-piece preview 6. Score tracking 7. Game over detection The game includes: - A canvas for the main game board - A next piece preview area - Score, level, and lines counters - Start button to begin or restart the game - Keyboard controls (arrow keys for movement, up arrow for rotation, space bar for hard drop) The game logic handles: - Piece generation and placement - Collision detection - Line clearing and scoring - Level progression based on lines cleared - Game over detection You can run this game by opening the index.html file in any modern web browser. The game is fully self-contained with no external dependencies.