oneshotlm
Compare all models on this prompt →

Tetris · qwen3.6-27b

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 · 8 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 a complete, self-contained Tetris game in a single HTML file. Let me build this with all the requested features:

1. All seven tetrominoes (I, O, T, S, Z, J, L)
2. Rotation (wall kick support)
3. Line clears
4. Increasing speed as score increases
5. Next-piece preview
6. Score display

I'll use a canvas for the main game board and another smaller canvas for the next-piece preview. Everything will be in one HTML file with inline CSS and JS.

write /workspace/index.html (15173 bytes)
toolResult

Successfully wrote 15173 bytes to /workspace/index.html

assistant
thinking
The file has been created. Let me verify it's there and looks correct.
bash {"command":"ls -la /workspace/index.html && wc -l /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 15413 Jul 31 03:11 /workspace/index.html 612 /workspace/index.html

assistant
thinking
The file is created and has 612 lines. Let me do a quick sanity check on the HTML structure to make sure nothing's broken.
bash {"command":"grep -c \"<script>\" /workspace/index.html && grep -c \"</script>\" /workspace/index.html && grep -c \"<style>\" /workspace/inde
toolResult

1 1 1 1

assistant
thinking
All tags are properly opened and closed. The file is complete and self-contained.

Done. `/workspace/index.html` is a fully self-contained Tetris game with all requested features: - **7 tetrominoes**: I, O, T, S, Z, J, L — each with distinct colors - **Rotation**: SRS-style wall-kick rotation system (including I-piece specific kicks) - **Ghost piece**: translucent preview showing where the piece will land - **Line clears**: animated flash animation when rows are cleared - **Scoring**: 100/300/500/800 points for 1/2/3/4 lines × level, +1 per soft drop step, +2 per hard drop step - **Increasing speed**: drop interval decreases by 70ms per level (starts at 800ms, minimum 50ms) - **Next-piece preview**: shown in the side panel - **7-bag randomizer**: ensures fair piece distribution - **Level progression**: level increases every 10 lines cleared **Controls**: ← → to move, ↑ to rotate, ↓ for soft drop, Space for hard drop, P to pause, Enter to start/restart.

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.6-27b
vendorQwen
harnesspi-agent
generated2026-07-31

EVALUATION

4/5 working

Functional Tetris with pieces falling, score/level/lines tracking, next-piece preview; game responds to keyboard input correctly.

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.0%
on click0.0%
on drag0.9%
on wheel0.0%
on enter + space1.1%
on arrow keys1.7%
on w/a/s/d2.1%
frame spread19.4 / 255
console errors0
js errors none

METRICS

runtime137.6s
tokens in12k
tokens out5.9k
cached11k
cost / run$0.0222