oneshotlm
Compare all models on this prompt →

Space Invaders · qwen3.6-flash

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
The user wants a complete Space Invaders game in a single HTML file. Let me build a full-featured implementation with:

1. Player cannon - moves left/right, shoots
2. Grid of aliens that descend and advance
3. Aliens fire back
4. Destructible bunkers/shields
5. Score tracking
6. Lives system
7. Procedural pixel-art style graphics on canvas

Let me write this comprehensively.
write /tmp/ws/index.html (20423 bytes)
toolResult

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

assistant
thinking
The user asked for a playable Space Invaders game with all features:
- Player cannon that moves and shoots
- Descending grid of aliens that advance and fire back
- Destructible bunkers
- Score and lives
- Procedural graphics only, no external assets

I've written a complete single-file HTML game. Let me verify it was written correctly.

Done — `index.html` is ready at `/tmp/ws/index.html`. Here's what's included: **Gameplay:** - **Player cannon** moves left/right (← → or A D) and fires with spacebar - **5 rows × 11 columns** of pixel-art aliens (3 types with different point values: 10–30 pts each) - Aliens march side-to-side, accelerating as you destroy them, and descend when hitting edges - **Aliens shoot back** with zigzagging red bullets, increasing rate per level - **4 destructible bunkers** made of individual segments — bullet impacts spread damage to nearby pieces - **Mystery UFO** flies across the top occasionally for bonus points (50–300) - **Lives system** (3 lives, shown as ship icons), score tracking, and level progression - **High score** saved to localStorage **Visuals (all procedural):** - Animated pixel sprites for 3 alien types + UFO + player ship - Explosion animations with expanding particle effects - Twinkling star field background - Green CRT-style HUD overlay Open `index.html` in any 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

modelqwen3.6-flash
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Full Space Invaders with menu, aliens, bunkers, lives, score; keyboard starts game and shows player shots, mouse inputs ignored (expected).

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.4%
on click0.4%
on drag0.4%
on wheel0.4%
on enter + space8.8%
on arrow keys4.4%
on w/a/s/d4.1%
frame spread22.3 / 255
console errors0
js errors none

METRICS

runtime46.6s
tokens in11k
tokens out8.4k
cached0
cost / run$0.0115