oneshotlm
Compare all models on this prompt →

Asteroids · qwen3.5-397b-a17b

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 · 6 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 create a complete Asteroids game in a single HTML file with:
- Canvas-based rendering
- Vector ship with thrust and rotation controls
- Shooting mechanics
- Screen edge wrapping
- Asteroids that split into smaller pieces when shot
- Score and lives tracking
- All procedural vector graphics (no external assets)

I'll create a self-contained index.html with embedded CSS and JavaScript.
write /tmp/ws/index.html (16596 bytes)
toolResult

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

assistant
thinking
The file has been created successfully. Let me verify it exists and is complete.
bash {"command":"ls -la /tmp/ws/index.html && wc -l /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 16602 Aug 1 19:43 /tmp/ws/index.html 506 /tmp/ws/index.html

assistant
thinking
The file has been created successfully. It's a 506-line, ~16KB self-contained HTML file with the complete Asteroids game. Let me summarize what I built for the user.

Done! Created `/tmp/ws/index.html` - a complete Asteroids game with: **Features:** - **Vector ship** with rotation (← →), thrust (↑), and shooting (Space) - **Screen wrapping** for ship, bullets, and asteroids - **Asteroid splitting** - Large → Medium → Small, each worth more points - **Procedural vector graphics** - Irregular asteroid shapes generated with random vertices - **Score system** - 20/50/100 points for large/medium/small asteroids - **Lives system** - 3 lives with invincibility period after respawning - **Particle effects** - Thrust flames and explosion debris - **Level progression** - More asteroids spawn each level - **Game over screen** with restart button **Controls:** - ← → or A/D: Rotate - ↑ or W: Thrust - Space: Shoot Open `index.html` in a browser to play!

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

modelqwen3.5-397b-a17b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Vector asteroids game with ship, wrapping asteroids, score/lives HUD; ship loses lives over time but no visible thrust/rotation change or shots seen.

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 motion1.7%
on click2.1%
on drag2.1%
on wheel2.0%
on enter + space2.3%
on arrow keys2.6%
on w/a/s/d2.2%
frame spread13 / 255
console errors0
js errors none

METRICS

runtime61.0s
tokens in14k
tokens out4.6k
cached0
cost / run$0.0160