oneshotlm
Compare all models on this prompt →

Snake · laguna-m.1

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 me to build a Snake game as a single-page web app. Let me create an index.html file with:
1. A canvas element for the game
2. CSS for styling
3. JavaScript for game logic with:
   - Arrow key controls
   - Growing tail when eating food
   - Score display
   - Game over state
   - Restart functionality

I'll write all of this in a single self-contained file with no external resources.

write /workspace/index.html (6962 bytes)
toolResult

Successfully wrote 6962 bytes to /workspace/index.html

assistant

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

modellaguna-m.1
vendorPoolside
harnesspi-agent
generated2026-07-22

EVALUATION

1/5 broken

Snake game renders with a single green square and food dot but never moves, animates, or responds to any input including arrow keys.

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 keys0.0%
on w/a/s/d0.0%
frame spread13 / 255
console errors0
js errors none

METRICS

runtime30.3s
tokens in36
tokens out2.5k
cached1.5k
cost / run$0.0011