oneshotlm
Compare all models on this prompt →

Tetris · qwen3.5-122b-a10b

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 · 6 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 Tetris game in a single HTML file. Let me create a fully functional Tetris with:

1. All seven tetrominoes (I, O, T, S, Z, J, L)
2. Rotation mechanics
3. Line clearing
4. Increasing speed as you level up
5. Next piece preview
6. Score tracking

I'll write this as a self-contained index.html file with inline CSS and JavaScript.
write index.html (17383 bytes)
toolResult

Successfully wrote 17383 bytes to index.html

assistant
thinking
I've created a complete Tetris game in a single HTML file. Let me verify it was written correctly by checking if the file exists.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 17383 Aug 1 20:55 /tmp/ws/index.html

assistant
thinking
The file was created successfully. Let me provide a summary of what the game includes.

Done! Created `index.html` with a fully playable Tetris game featuring: **Features:** - All 7 tetrominoes (I, O, T, S, Z, J, L) with proper colors - Wall kick rotation system for smooth gameplay - Ghost piece showing where the block will land - Next piece preview panel - Score tracking (100/300/500/800 points for 1/2/3/4 lines, multiplied by level) - Level progression (increases every 10 lines) - Speed increases with each level - Line clearing with animation effect **Controls:** - `←` `→` - Move left/right - `↑` - Rotate - `↓` - Soft drop (+1 point per drop) - `Space` - Hard drop (+2 points per cell) - `P` - Pause - `R` - Restart Open `index.html` in any 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-122b-a10b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Functional Tetris with falling pieces, next-piece preview, score/level/lines, and keyboard controls that move/rotate pieces.

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.8%
on click1.0%
on drag1.2%
on wheel1.0%
on enter + space2.1%
on arrow keys2.6%
on w/a/s/d2.3%
frame spread17.5 / 255
console errors0
js errors none

METRICS

runtime32.5s
tokens in14k
tokens out5.0k
cached0
cost / run$0.0142