oneshotlm
Compare all models on this prompt →

Space Invaders · deepseek-v4-flash-0731

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
thinking
Let me build a Space Invaders game in a single index.html file with procedural graphics. Let me write it.
write /tmp/ws/index.html (27526 bytes)
toolResult

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

assistant
thinking
Let me verify the file exists.
bash {"command":"cd /tmp/ws && ls -la index.html && node -e \"new (require('vm').Script)(require('fs').readFileSync('index.html','utf8').match(/<
toolResult

-rw-r--r--. 1 node node 27526 Aug 2 03:26 index.html JS syntax OK

assistant

Done. `index.html` is a complete, self-contained Space Invaders game. **Features implemented:** - **Player cannon** — moves with arrow keys, shoots with Space, blinks/respawns on hit. - **Grid of aliens** (5 rows × 11 columns, 3 procedurally-drawn sprite types) that march side-to-side, descend at edges, speed up as they're killed, and fire back. - **Destructible bunkers** — cell-based grids that carve out when hit by any bullet. - **Score, hi-score, and lives HUD**, plus bonus points for UFOs and wave-clear bonuses. - **Procedural graphics only** — every sprite (aliens, cannon, UFO, bunkers, explosions, stars) drawn with canvas primitives. No external assets. - **Procedural WebAudio sound** — classic descending alien beeps, shooting, explosions, UFO. **Controls:** ← → move, Space shoot, P pause, R restart, Enter start. All CSS/JS is inline in one file with no network requests, so it runs fully sandboxed. Open `index.html` in a 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

modeldeepseek-v4-flash-0731
vendorDeepSeek
harnesspi-agent
generated2026-08-02

EVALUATION

4/5 working

Space Invaders with player ship, bunkers, alien grid, UFO, and game over state respond correctly to keyboard input.

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 + space4.9%
on arrow keys4.2%
on w/a/s/d0.0%
frame spread15.4 / 255
console errors0
js errors none

METRICS

runtime68.3s
tokens in9.1k
tokens out10k
cached15k
cost / run$0.0350