Snake · qwen3-next-80b-a3b-instruct
Output generated Cost / run $0.0028 Runtime 23.8s
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.
I'll create a standalone Snake game in a single HTML file with all the requested features: arrow-key controls, growing tail, food, score, game-over state, and restart functionality.
index.html (8015 bytes)Successfully wrote 8015 bytes to index.html
I've created a complete Snake game in a single HTML file named `index.html` with all the requested features: - Arrow-key controls for movement - A growing snake tail when eating food - Randomly placed food - Score tracking - Game-over state with a "Game Over!" message - Restart button to play again The game runs fully sandboxed with no external resources or network requests. The snake grows when it eats food, the score increases, and the game speeds up slightly every 5 points. The game ends if the snake hits the wall or itself. You can now open `index.html` in any modern web browser to play the game.