oneshotlm
Compare all models on this prompt →

Snake · gemini-2.5-flash

Output saved · Stopped by an API error Cost / run $0.0058 Runtime 17.5s

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

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

modelgemini-2.5-flash
vendorGoogle
harnesspi-agent
generated2026-07-22

METRICS

runtime17.5s
tokens in1.1k
tokens out2.2k
cached0
cost / run$0.0058
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
thinking
**Building**

I'm focusing on creating a self-contained HTML file for the Snake game, which involves embedding CSS and JavaScript directly within the `index.html`. My current efforts are centered on structuring the HTML, ensuring a `canvas` element is present for the game, and setting up elements for displaying the score and any game-over messages.

→ write index.html (7331 bytes)
toolResult

Successfully wrote 7331 bytes to index.html

assistant
thinking
**Correcting Font Implementation**

I've drafted the basic `index.html`. However, I've identified an immediate issue with my CSS where I referenced an external font via `@font-face` and a CDN, which directly contradicts the "no external resources" directive. I'll be removing that problematic font declaration to adhere to the constraints.