oneshotlm
Compare all models on this prompt →

Space Invaders · gpt-4o-mini-2024-07-18

Output generated Cost / run $0.0012 Runtime 18.9s

Prompt for this run

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural 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

modelgpt-4o-mini-2024-07-18
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime18.9s
tokens in3.7k
tokens out1.4k
cached2.4k
cost / run$0.0012
Transcript · 4 messages
user

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.

assistant
→ write index.html (5074 bytes)
toolResult

Successfully wrote 5074 bytes to index.html

assistant

The Space Invaders game has been successfully built and written into a single HTML file. You can find it named `index.html` in the current directory. You can open this file in a web browser to play the game.