oneshotlm
Compare all models on this prompt →

Space Invaders · nemotron-3-ultra-550b-a55b

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
We need to write a single HTML file with canvas Space Invaders. Must be self-contained, procedural graphics only. We'll write HTML with canvas, style, script. Implement player cannon, aliens grid, bunkers, shooting both ways, collision, score, lives, game loop. Use requestAnimationFrame. Keep simple but functional.

We need to write to index.html in workspace. We'll create file using write.
write /workspace/index.html (7306 bytes)
toolResult

Successfully wrote 7306 bytes to /workspace/index.html

assistant
thinking
We have written the file. Need to ensure it's correct. Provide final answer with path.

The game is ready in **/workspace/index.html**. Open this file in a browser to play Space Invaders – it includes a movable cannon, descending alien grid, alien fire, destructible bunkers, scoring, lives, levels, and win/game‑over screens, all drawn procedurally on a `<canvas>` with no external assets.

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

modelnemotron-3-ultra-550b-a55b
vendorNVIDIA
harnesspi-agent
generated2026-07-22

EVALUATION

3/5 working

Space Invaders renders with aliens, bunkers, cannon; game reaches Game Over during drag/wheel tests but keyboard input works fine.

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.8%
on click9.3%
on drag10.2%
on wheel0.0%
on enter + space10.7%
on arrow keys8.9%
on w/a/s/d8.9%
frame spread29.2 / 255
console errors0
js errors none

METRICS

runtime65.8s
tokens in5.9k
tokens out2.6k
cached128
cost / run$0.0088