Snake · deepseek-chat
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 (6139 bytes)Successfully wrote 6139 bytes to index.html
I've created a self-contained Snake game in `index.html`. Here are its features: - Playable Snake game with arrow-key controls - Growing tail when eating food - Randomly generated food - Score tracking - Collision detection (walls and self) - Game-over screen with final score - Restart button to play again You can open `index.html` in a web browser to play the game. Enjoy!
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.