oneshotlm
Compare all models on this prompt →

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

Output generated Cost / run $0.0088 Runtime 65.8s

Prompt for this run

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 ↗

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

METRICS

runtime65.8s
tokens in6.0k
tokens out2.6k
cached128
cost / run$0.0088
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.