oneshotlm
Compare all models on this prompt →

Tetris · qwen3.5-397b-a17b

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 ↗
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
thinking
The user wants me to build a complete, playable Tetris game in a single HTML file. Let me plan out what I need to include:

1. HTML structure with a canvas element
2. CSS styling in a <style> tag
3. JavaScript in a <script> tag with:
   - All 7 tetrominoes (I, O, T, S, Z, J, L)
   - Rotation functionality
   - Line clearing logic
   - Increasing speed as levels progress
   - Next piece preview
   - Score tracking
   - Game loop
   - Keyboard controls

Let me create a complete, well-structured Tetris game.
write /tmp/ws/index.html (17063 bytes)
toolResult

Successfully wrote 17063 bytes to /tmp/ws/index.html

assistant
thinking
I've created a complete, playable Tetris game in a single HTML file. Let me verify it exists and summarize what's included.

Done! I've created a complete, playable Tetris game in `/tmp/ws/index.html` with: **Features:** - All 7 tetrominoes (I, O, T, S, Z, J, L) with distinct colors - Piece rotation with wall-kick support - Line clears with scoring (100/300/500/800 points for 1/2/3/4 lines) - Increasing speed as levels progress (level = lines / 10) - Next piece preview canvas - Ghost piece showing where the piece will land - Score, level, and lines display - Game over screen with restart button - Pause functionality (P key) **Controls:** - ← → : Move left/right - ↑ : Rotate - ↓ : Soft drop (+1 point per cell) - Space : Hard drop (+2 points per cell) - P : Pause/resume Open `index.html` in a browser to play!

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.5-397b-a17b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Functional Tetris with pieces falling, rotating, stacking, score updates, and next-piece preview responding 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.

idle motion0.9%
on click1.0%
on drag2.0%
on wheel0.9%
on enter + space2.0%
on arrow keys1.3%
on w/a/s/d1.9%
frame spread20.4 / 255
console errors0
js errors none

METRICS

runtime62.9s
tokens in8.0k
tokens out5.0k
cached0
cost / run$0.0147