oneshotlm
Compare all models on this prompt →

Asteroids · mistral-large-2512

Output generated Cost / run $0.0087 Runtime 46.8s

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

modelmistral-large-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime46.8s
tokens in6.8k
tokens out4.0k
cached1.4k
cost / run$0.0087
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 /tmp/ws/index.html (15068 bytes)
toolResult

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

assistant

The Asteroids game is ready! Open `/tmp/ws/index.html` in a web browser to play. **Controls:** - **Arrow Left/Right**: Rotate ship - **Arrow Up**: Thrust forward - **Space**: Fire bullets **Game Features:** - Vector-based ship, asteroids, and bullets - Screen wrapping (ship and asteroids reappear on opposite edges) - Asteroids split into smaller pieces when hit - Score tracking and lives system - Game over screen with restart button - Procedural asteroid shapes and particle effects