oneshotlm
Compare all models on this prompt →

Space Invaders · seed-2-1-turbo

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 · 4 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
thinking
I'll build a single HTML canvas Space Invaders game, starting with player cannon functions.All required game features have been clarified, and the implementation will be carried out step by step.
write /tmp/ws/index.html (18304 bytes)
toolResult

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

assistant
thinking
File written successfully, will verify and summarize.

Created `/tmp/ws/index.html` — a fully self-contained Space Invaders game. **Features:** - **Player cannon** — moves left/right (← → or A/D), fires with Space/↑/W - **5×11 alien grid** — 3 types (squid/crab/octopus) with different point values, animated walking frames, march side-to-side and descend on edge contact - **Alien fire** — random bottom-row aliens shoot back; speed/difficulty scales with level and remaining aliens - **4 destructible bunkers** — pixel-by-pixel destruction with cratering on bullet impact - **HUD** — score, lives, level - **Levels** — clear all aliens to advance; bunkers repair every 2 levels - **Explosions** — particle effects on kills and hits - **Procedural graphics** — all sprites drawn with canvas rectangles (aliens, cannon, bunkers), stars twinkle in background - **Controls** — P to pause, Enter to restart after game over Open the file directly in a browser — no network or external assets needed.

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

modelseed-2-1-turbo
vendorByteDance · Seed
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

Functional Space Invaders with cannon, aliens, bunkers, score/lives, and game over screen after losing all 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 motion4.9%
on click6.7%
on drag6.0%
on wheel5.7%
on enter + space7.9%
on arrow keys6.5%
on w/a/s/d5.9%
frame spread20.5 / 255
console errors0
js errors none

METRICS

runtime108.6s
tokens in11k
tokens out7.6k
cached2.7k
cost / run$0.0230