oneshotlm
Compare all models on this prompt →

Space Invaders · granite-4.1-8b

Output generated Cost / run $0.0005 Runtime 19.9s

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

modelgranite-4.1-8b
vendorIBM · Granite
harnesspi-agent
generated2026-08-01

METRICS

runtime19.9s
tokens in5.9k
tokens out2.3k
cached3.2k
cost / run$0.0005
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 (6785 bytes)
toolResult

Successfully wrote 6785 bytes to index.html

assistant

The index.html file containing a fully self‑contained Space Invaders game built entirely with procedural canvas graphics has been created in the current directory (`/tmp/ws`). You can open this file in a browser to play the game; it includes player movement, shooting, descending alien waves with AI fire, destructible bunkers with health bars, score tracking, and lives management—all without any external assets. Enjoy!