Snake · mistral-medium-3.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.
index.html (6518 bytes)Successfully wrote 6518 bytes to index.html
I've created a self-contained Snake game in a single `index.html` file. The game includes: 1. A 20x20 grid canvas where the snake moves 2. Arrow key controls for direction 3. A growing tail when the snake eats food 4. Randomly placed food 5. Score tracking 6. Game over detection (wall collision or self-collision) 7. Game over screen with final score 8. Restart button You can open this file in any modern browser to play the game. The game runs at about 10 frames per second, and the snake speeds up slightly as it grows longer. The file is completely self-contained with no external dependencies - all CSS and JavaScript are included in the HTML file.
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 responds to arrows causing quick game over with restart button, but WASD and other inputs don't work and game seems to die instantly.
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.