oneshotlm
Compare all models on this prompt →

Snake · gemini-2.5-flash

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 ↗
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.

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

EVALUATION

2/5 partial

Snake game renders with food and snake, but no idle movement and arrow keys trigger immediate game over.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space0.0%
on arrow keys11.7%
on w/a/s/d0.0%
frame spread22.7 / 255
console errors1
js errors none

METRICS

runtime17.5s
tokens in1.1k
tokens out2.2k
cached0
cost / run$0.0058