Compare all models on this prompt →
Snake · gpt-4o-mini-2024-07-18
Output generated Cost / run $0.0009 Runtime 13.1s
Prompt for this run
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
⛨ 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
runtime13.1s
tokens in3.3k
tokens out984
cached2.0k
cost / run$0.0009
Transcript · 4 messages
user
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
assistant
→ write
index.html (3120 bytes)toolResult
Successfully wrote 3120 bytes to index.html
assistant
The Snake game has been successfully created and written to the file `index.html`. You can open this file in a web browser to play the game.