oneshotlm
Compare all models on this prompt →

Snake · mercury-2

Output generated Cost / run $0.0022 Runtime 4.3s

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

modelmercury-2
vendorInception
harnesspi-agent
generated2026-08-01

METRICS

runtime4.3s
tokens in4.1k
tokens out1.7k
cached366
cost / run$0.0022
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 (3738 bytes)
toolResult

Successfully wrote 3738 bytes to index.html

assistant

The **Snake game** has been created as a single self‑contained `index.html` file in the current directory. It includes: - A canvas for rendering the game. - Arrow‑key controls. - Growing tail, food generation, score display. - Game‑over detection with a restart prompt (press **Space**). You can open `index.html` in any modern browser to play the game. Enjoy!