oneshotlm
Compare all models on this prompt →

Tetris · kat-coder-air-v2.5

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 · 12 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

write /tmp/ws/index.html (11576 bytes)
toolResult

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

assistant

write /tmp/ws/index.html (13582 bytes)
toolResult

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

assistant

write /tmp/ws/index.html (11532 bytes)
toolResult

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

assistant

I'll build a complete, polished Tetris game in a single HTML file with canvas rendering, all 7 tetrominoes, rotation, line clears, increasing speed, next piece preview, and scoring.

write /tmp/ws/index.html (13582 bytes)
toolResult

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

assistant

bash {"command":"ls -la /tmp/ws/index.html && wc -l /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 13592 Aug 1 20:58 /tmp/ws/index.html 537 /tmp/ws/index.html

assistant

The file is written and ready. Here's a summary of what's included: **All 7 Tetrominoes** — I, O, T, S, Z, J, L with distinct colors (cyan, yellow, purple, green, red, blue, orange) **Controls:** - `←` `→` — Move left/right - `↑` — Rotate (with wall kicks) - `↓` — Soft drop (+1 point per row) - `Space` — Hard drop (+2 points per row) - `P` — Pause **Features:** - **7-bag randomizer** — ensures fair piece distribution - **Ghost piece** — translucent preview showing where the piece will land - **Next piece preview** — shown in the sidebar - **Line clears** — with flash animation, scoring 100/300/500/800 × level for 1/2/3/4 lines - **Increasing speed** — drop interval decreases from 1000ms down to 50ms as level increases (levels up every 10 lines) - **Score, Lines, and Level display** - **Game over detection** — when new pieces can't spawn - **Start/Game Over overlay** with play button

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

modelkat-coder-air-v2.5
vendorKwaipilot
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Only a static Tetris start menu with Play button is shown; clicking Play was never triggered by the probe inputs so no gameplay is visible.

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.0%
on wheel0.0%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread16.4 / 255
console errors0
js errors none

METRICS

runtime102.7s
tokens in77k
tokens out20k
cached57k
cost / run$0.0167