Snake · kat-coder-pro-v2
Output generated Cost / run $0.0061 Runtime 42.6s
Prompt for this run
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
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
METRICS
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.
/workspace/index.html (9967 bytes)Successfully wrote 9967 bytes to /workspace/index.html
I've created a complete, self-contained Snake game in `/workspace/index.html`. Features include: - **Arrow keys / WASD** controls - Growing snake with gradient body and animated eyes that follow direction - Glowing red food pellets - Score tracking with persistent high score (localStorage) - Game-over overlay with restart button - Start screen overlay - Speed increases as you score more points - Smooth visual design with grid background, shadows, and gradients - Collision detection for walls and self The game is fully playable with no external dependencies. Just open `index.html` in a browser to play!