oneshotlm
Compare all models on this prompt →

Asteroids · qwen3-235b-a22b-2507

Output saved · Stopped by an API error Cost / run $0.0035 Runtime 264.1s

A model request failed and its retries ran out. The output is the HTML saved before that.

Prompt for this run

Build a playable Asteroids-style game on a canvas using procedural vector graphics. Use HTML, CSS, and JavaScript as needed. Write it to `index.html` in the current working directory using your file tools. Inline your own CSS and JavaScript. Do not use external assets, CDNs, or network requests. No third-party libraries are provided. Required behavior: - Use Left/Right to rotate the ship, Up to thrust, and Space to fire. Show the controls. The ship retains momentum and wraps around every screen edge; asteroids also wrap. - Spawn moving large asteroids. A bullet hit splits a large asteroid into smaller pieces; hitting a smallest piece removes it. Hits increase the score. - Start with three lives. A ship-asteroid collision removes one life, respawns the ship, and briefly protects it from immediate repeated damage. - Clearing all asteroids starts another wave. Losing all lives shows Game Over and a Restart control that resets score, lives, and the arena. - Keep projectile lifetime bounded and prevent gameplay keys from scrolling the page. Verify: Test rotation, thrust, and firing near the initial spawn. Check that the ship changes heading, gains momentum, and emits moving projectiles. Sample the scene to inspect screen wrapping when an object crosses an edge.

⛨ 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

modelqwen3-235b-a22b-2507
vendorQwen
harnesspi 0.87.1 · browser iteration
generated2026-10-09

METRICS

runtime264.1s
tokens in34k
tokens out2.8k
cached6.3k
cost / run$0.0035
Transcript · 20 messages
system

user

Build a playable Asteroids-style game on a canvas using procedural vector graphics. Use HTML, CSS, and JavaScript as needed. Write it to `index.html` in the current working directory using your file tools. Inline your own CSS and JavaScript. Do not use external assets, CDNs, or network requests. No third-party libraries are provided. Required behavior: - Use Left/Right to rotate the ship, Up to thrust, and Space to fire. Show the controls. The ship retains momentum and wraps around every screen edge; asteroids also wrap. - Spawn moving large asteroids. A bullet hit splits a large asteroid into smaller pieces; hitting a smallest piece removes it. Hits increase the score. - Start with three lives. A ship-asteroid collision removes one life, respawns the ship, and briefly protects it from immediate repeated damage. - Clearing all asteroids starts another wave. Losing all lives shows Game Over and a Restart control that resets score, lives, and the arena. - Keep projectile lifetime bounded and prevent gameplay keys from scrolling the page. Verify: Test rotation, thrust, and firing near the initial spawn. Check that the ship changes heading, gains momentum, and emits moving projectiles. Sample the scene to inspect screen wrapping when an object crosses an edge.

assistant
→ write index.html (10500 bytes)
toolResult

Successfully wrote to index.html

assistant
→ browser {"action":"reload"}
toolResult

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Controls: Arrow Keys to move, Space to shoot","images":"model does not support images"}

assistant
assistant
→ browser {"action":"inspect"}
toolResult

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Controls: Arrow Keys to move, Space to shoot\nGAME OVER\nRestart","images":"model does not support images"}

assistant
→ browser {"action":"click","x":400,"y":360}
toolResult

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Controls: Arrow Keys to move, Space to shoot\nGAME OVER\nRestart","images":"model does not support images"}

assistant
→ browser {"action":"key","text":"ArrowLeft"}
toolResult

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Controls: Arrow Keys to move, Space to shoot\nGAME OVER\nRestart","images":"model does not support images"}

assistant
→ browser {"action":"click","x":400,"y":360}
toolResult

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Controls: Arrow Keys to move, Space to shoot\nGAME OVER\nRestart","images":"model does not support images"}

assistant
→ browser {"action":"key","text":"ArrowLeft"}
toolResult

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Controls: Arrow Keys to move, Space to shoot\nGAME OVER\nRestart","images":"model does not support images"}

assistant
assistant
assistant