oneshotlm
Compare all models on this prompt →

Asteroids · grok-4.6

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 ↗
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
thinking
The user wants me to build a complete Asteroids game as a single self-contained HTML file. Let me create a polished, playable version with:

I'll build a self-contained Asteroids game with vector graphics, wrapping, splitting rocks, score, and lives.

write /tmp/ws/index.html (17415 bytes)
toolResult

Successfully wrote 17415 bytes to /tmp/ws/index.html

assistant
thinking
The file was written successfully. The user asked for a playable Asteroids game in a single self-contained index.html. I've created that. Let me give a brief summary of what was built.

`index.html` is a self-contained Asteroids game — vector-only, no network or external assets. **Play:** rotate with ←/→ (or A/D), thrust with ↑ (or W), fire with Space, hyperspace with H. Screen wrap on ship, bullets, and rocks. **Rules:** large rocks split twice (100 / 50 / 20 pts). You start with 3 lives and a short invulnerability window after spawn. A saucer shows up between waves (200 / 1000 pts). Score and remaining ships sit in the HUD. Enter starts or restarts.

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

modelgrok-4.6
vendorxAI · Grok
harnesspi-agent
generated2026-08-13

EVALUATION

3/5 working

Asteroids game starts on Enter/keyboard input, shows ship, asteroids, lives; mouse inputs do nothing since it's keyboard-only.

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 motion0.3%
on click0.3%
on drag0.3%
on wheel0.3%
on enter + space5.2%
on arrow keys2.9%
on w/a/s/d2.7%
frame spread20.6 / 255
console errors0
js errors none

METRICS

runtime65.1s
tokens in9.7k
tokens out6.6k
cached1.7k
cost / run$0.0564