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.
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 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.
/workspace/index.html (6962 bytes)Successfully wrote 6962 bytes to /workspace/index.html
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 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.