oneshotlm
Compare all models on this prompt →

Snake · qwen3.6-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
The user wants a complete Snake game in a single HTML file with:
- Canvas-based rendering
- Arrow key controls
- Growing tail mechanics
- Food spawning
- Score display
- Game over state with restart option
- No external dependencies

Let me build a polished, fully functional Snake game.
write /workspace/index.html (11021 bytes)
toolResult

Successfully wrote 11021 bytes to /workspace/index.html

assistant
thinking
The file has been written. Let me verify it exists and looks correct.

The file is ready. Here's what the **Snake** game includes: ### Features - **Canvas-based rendering** with a 30×30 grid and 20px cells - **Arrow-key controls** — up / down / left / right - **Growing tail** — the snake extends by one segment each time food is eaten, with no tail removal - **Food** — pulsing red orb with a glow effect and a shiny highlight - **Score** — displayed top-left; +10 per food eaten - **High score** — persisted in `localStorage` and shown top-right - **Game-over state** — death on wall or self-collision; overlay shows score and "Press any arrow key to restart" - **Start screen** — initial overlay with instructions - **Particle effects** — burst of colorful particles when food is eaten - **Snake eyes** — the head has animated eyes that follow the movement direction - **Fully self-contained** — no external resources, CDNs, or network requests Open `index.html` in any browser to play.

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

modelqwen3.6-flash
vendorQwen
harnesspi-agent
generated2026-07-08

EVALUATION

3/5 working

Snake game with canvas, score, food; arrow keys triggered movement into wall causing Game Over screen.

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 + space9.4%
on arrow keys9.4%
on w/a/s/d0.0%
frame spread10 / 255
console errors0
js errors none

METRICS

runtime30.0s
tokens in7.1k
tokens out4.2k
cached0
cost / run$0.0061