oneshotlm
Compare all models on this prompt →

Space Invaders · qwen3-vl-32b-instruct

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
write index.html (17660 bytes)
toolResult

Successfully wrote 17660 bytes to index.html

assistant

I've created a playable Space Invaders game in a single HTML file as requested. The game features: - A player cannon that moves left/right with arrow keys or A/D, and shoots with spacebar/Enter - A descending grid of aliens that move horizontally and drop down when they hit the edges - Aliens fire back at random intervals - Destructible bunkers for player cover (4 bunkers across the bottom) - Score tracking and lives system (3 lives total) - Game over screen when all lives are lost or aliens reach the bottom - Start screen with instructions The game uses procedural graphics only - no external assets or CDNs. All elements are drawn directly on the canvas using JavaScript and CSS. The game is fully self-contained in index.html and runs entirely offline with no network requests. Players can restart after game over by pressing Enter. The code includes smooth animations, collision detection between bullets, aliens, bunkers, and the player, as well as responsive controls and visual feedback. You can now open index.html in any modern browser to play the game!

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-vl-32b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Space Invaders with menu, colorful alien grid, bunkers, player ship, score/lives HUD; lives dropped to 2 showing gameplay response.

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 click7.8%
on drag5.9%
on wheel6.4%
on enter + space6.7%
on arrow keys5.7%
on w/a/s/d5.6%
frame spread20.9 / 255
console errors0
js errors none

METRICS

runtime64.6s
tokens in8.1k
tokens out5.3k
cached0
cost / run$0.0031