oneshotlm
Compare all models on this prompt →

Space Invaders · kat-coder-pro-v2

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.

assistant
write /workspace/index.html (24393 bytes)
toolResult

Successfully wrote 24393 bytes to /workspace/index.html

assistant
bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 24395 Jul 31 08:54 /workspace/index.html

assistant

I've built a complete Space Invaders game in a single `index.html` file. Here's what's included: **Features:** - **Player cannon** – Move with ←/→ or A/D keys, shoot with Space or ↑ - **5×11 alien grid** – Three alien types (squid, crab, octopus) with different point values (30/20/10) - **Alien AI** – Aliens march side-to-side, drop down when hitting edges, speed up as fewer remain, and fire back randomly - **Destructible bunkers** – 4 pixel-art bunkers that degrade block-by-block when hit by any bullet - **Score & lives** – Display at top, 3 lives, lives lost when hit by alien bullets - **Levels** – After clearing all aliens, next level starts with faster movement - **Procedural graphics** – All pixel art drawn with canvas rectangles, animated star background, explosion particles - **Game states** – Play, Game Over, Win screens with restart option **Controls:** - ←/→ or A/D – Move cannon - Space or ↑ – Fire - Enter – Restart after game over/win The game runs entirely in the browser with no external dependencies. Open `index.html` 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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

EVALUATION

4/5 working

Functional Space Invaders with aliens, bunkers, lives, shooting, and a game over/restart screen after losing lives.

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 motion14.6%
on click12.9%
on drag17.6%
on wheel12.3%
on enter + space13.1%
on arrow keys17.9%
on w/a/s/d0.0%
frame spread32.7 / 255
console errors0
js errors none

METRICS

runtime72.6s
tokens in18k
tokens out6.5k
cached16k
cost / run$0.0093