oneshotlm
Compare all models on this prompt →

Asteroids · ministral-8b-2512

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
write index.html (12584 bytes)
toolResult

Successfully wrote 12584 bytes to index.html

assistant

Here’s a fully self-contained **Asteroids** game built into a single `index.html` file. The game includes: - A **thrust-and-rotate ship** controlled with arrow keys (↑/↓ for thrust, ←/→ for rotation). - **Shooting mechanics** (press **Space** to fire bullets). - **Asteroids** that split into smaller pieces when hit. - **Score and lives** tracking. - **Screen wrapping** (edges loop around). - **Procedural vector graphics** (no external assets). ### How to Play: 1. Copy the `index.html` file to your local machine. 2. Open it in a modern browser (Chrome, Firefox, Edge). 3. Use **arrow keys** to move and rotate the ship. 4. Press **Space** to shoot bullets. 5. Destroy asteroids to earn points and split them into smaller pieces. 6. Avoid collisions with asteroids (you have **3 lives**). ### Features: - **Physics-based movement** (thrust, rotation, friction). - **Collision detection** (ship vs. asteroids, bullets vs. asteroids). - **Dynamic asteroid spawning** (smaller asteroids appear when larger ones are destroyed). - **Score and lives system** (game over when lives reach 0). Enjoy the game! Let me know if you'd like any tweaks or additional features. 🚀

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

modelministral-8b-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Ship, asteroids, and score/lives HUD render; ship rotates and moves, asteroids drift, score changes to 200 after arrows suggesting shooting works.

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.0%
on click1.0%
on drag1.0%
on wheel0.9%
on enter + space1.1%
on arrow keys1.2%
on w/a/s/d0.7%
frame spread6.7 / 255
console errors0
js errors none

METRICS

runtime27.2s
tokens in6.2k
tokens out3.6k
cached2.3k
cost / run$0.0011