oneshotlm
Compare all models on this prompt →

Asteroids · granite-4.1-8b

Output generated Cost / run $0.0005 Runtime 20.3s

Prompt for this run

Build a playable Asteroids game on a canvas: a thrust-and-rotate vector ship that shoots and wraps around the screen edges, splitting asteroids into smaller pieces, with score and lives. Procedural vector 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

runtime20.3s
tokens in6.1k
tokens out2.4k
cached2.3k
cost / run$0.0005
Transcript · 4 messages
user

Build a playable Asteroids game on a canvas: a thrust-and-rotate vector ship that shoots and wraps around the screen edges, splitting asteroids into smaller pieces, with score and lives. Procedural vector graphics only, no external assets.

assistant
→ write index.html (7157 bytes)
toolResult

Successfully wrote 7157 bytes to index.html

assistant

The complete, self‑contained **index.html** file has been created in the current directory (**/tmp/ws/index.html**). It includes all the necessary HTML, procedural CSS, and JavaScript for a fully playable Asteroids game with thrust‑and‑rotate controls, bullet shooting, asteroid splitting, wrap‑around edges, score tracking, and life management, using only vector graphics and no external assets. Open this file in a web browser to play the game.