oneshotlm
Compare all models on this prompt →

Space Invaders · deepseek-chat

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

To create a Space Invaders game, I'll generate a self-contained `index.html` file with all the necessary HTML, CSS, and JavaScript. The game will include: 1. A player-controlled cannon that can move left and right and fire bullets. 2. A grid of descending aliens that move back and forth and advance downward. 3. Aliens that fire bullets randomly. 4. Destructible bunkers that provide cover for the player. 5. A scoring system. 6. Lives for the player. 7. Game over and win conditions. Here's the implementation:

write index.html (13215 bytes)
toolResult

Successfully wrote 13215 bytes to index.html

assistant

The Space Invaders game is now ready to play! Here's what I've included in `index.html`: 1. **Player Cannon**: - Move with arrow keys (left/right) - Shoot with spacebar 2. **Aliens**: - Grid of 50 aliens (5 rows x 10 columns) - Descend and change direction when hitting edges - Randomly fire bullets at player - Different point values based on row (top aliens worth more) 3. **Bunkers**: - 4 destructible bunkers for cover - Show visual damage as they degrade - Protect against both player and alien bullets 4. **Game Features**: - Score tracking (points for killing aliens) - Lives system (3 lives) - Game over when aliens reach bottom or you lose all lives - Win condition when all aliens are destroyed - Level progression (resets when you win with faster aliens) - Restart with 'R' key 5. **Visual Style**: - Classic arcade-inspired graphics (all procedural) - No external assets - everything drawn with Canvas API To play: 1. Open `index.html` in any modern browser 2. Use arrow keys to move 3. Spacebar to shoot 4. Try to survive and destroy all aliens! The game is completely self-contained - no network requests or external dependencies.

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-chat
vendorDeepSeek
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Space Invaders with aliens, bunkers, cannon, score/lives; game over triggers after losing all lives with restart prompt.

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 motion8.7%
on click14.1%
on drag12.9%
on wheel12.6%
on enter + space13.8%
on arrow keys13.0%
on w/a/s/d0.0%
frame spread45.3 / 255
console errors0
js errors none

METRICS

runtime42.5s
tokens in6.6k
tokens out3.7k
cached0
cost / run$0.0043