Snake · inkling-small
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
transcript · 4 messages
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
thinking
The user wants a Snake game. I'll write index.html with a canvas, keyboard controls, growing tail, food, score, game over/restart. All inline.
/tmp/ws/index.html (6644 bytes)Successfully wrote 6644 bytes to /tmp/ws/index.html
thinking
The file was written successfully. I should briefly summarize what's in it and confirm it's a single self-contained file.
Created `/tmp/ws/index.html`: a self-contained Snake game with canvas rendering, arrow-key movement, growing tail, food spawning, score/high-score tracking, collision detection, and a restart overlay. No external resources — all CSS and JS are inline.
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
EVALUATION
Snake game starts on Enter/Space but reverts to Game Over screen after arrow keys or WASD, seemingly instant death.
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.