Snake · gemini-2.5-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.
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
**Building** I'm focusing on creating a self-contained HTML file for the Snake game, which involves embedding CSS and JavaScript directly within the `index.html`. My current efforts are centered on structuring the HTML, ensuring a `canvas` element is present for the game, and setting up elements for displaying the score and any game-over messages.
index.html (7331 bytes)Successfully wrote 7331 bytes to index.html
thinking
**Correcting Font Implementation** I've drafted the basic `index.html`. However, I've identified an immediate issue with my CSS where I referenced an external font via `@font-face` and a CDN, which directly contradicts the "no external resources" directive. I'll be removing that problematic font declaration to adhere to the constraints.
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 food and snake, but no idle movement and arrow keys trigger immediate game over.
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.