oneshotlm
Compare all models on this prompt →

Asteroids · qwen3.6-plus

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 a classic Asteroids game as a single self-contained HTML file. Let me build this with:

1. A canvas-based game with procedural vector graphics
2. A ship that thrusts and rotates, with screen wrapping
3. Shooting mechanics
4. Asteroids that split into smaller pieces when hit
5. Score tracking and lives
6. All CSS and JS inline in one file

Let me design the game architecture:
- Ship: vector-drawn triangle, rotation with arrow keys, thrust with up arrow, shoot with space
- Asteroids: large, medium, small sizes; when hit, split into smaller ones until they disappear
- Bullets: fired from ship nose, limited range
- Collision detection: ship vs asteroids (lose life), bullets vs asteroids (score + split)
- Game states: playing, game over

Let me write this out comprehensively.
write /tmp/ws/index.html (12748 bytes)
toolResult

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

assistant

The game is ready at `/tmp/ws/index.html`. Here's what's included: **Controls:** - **← → / A D** — Rotate ship - **↑ / W** — Thrust (with flame particles) - **Space / X** — Fire bullets - **Enter** — Start / Restart **Gameplay features:** - Vector-style ship with thrust flame and cyan glow - Screen wrapping for ship, bullets, and asteroids - Asteroids split: **large → 3 medium → 2 small** - Scoring: 20 / 50 / 100 points - 3 lives shown as mini ships, with invincibility blinking after hit - Particle explosions on every hit and on ship death - Progressive difficulty — each level adds more asteroids - Starfield background - Start screen with instructions, game over screen with final score

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.6-plus
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Menu screen loads, Enter starts game with ship, asteroids, wrapping, and score/level HUD responding to keyboard controls.

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.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space3.5%
on arrow keys2.1%
on w/a/s/d2.3%
frame spread12.1 / 255
console errors0
js errors none

METRICS

runtime87.7s
tokens in7.9k
tokens out5.0k
cached0
cost / run$0.0123