Snake · granite-4.1-8b
Output generated Cost / run $0.0004 Runtime 13.3s
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.
index.html (4536 bytes)Successfully wrote 4536 bytes to index.html
The playable Snake game has been created and saved as **`index.html`** in the current directory. You can open this file in any web browser to play the game; it uses arrow‑key controls, a growing tail, food spawning, score tracking, and handles game‑over with a restart option—all contained within the single HTML file without any external resources. Enjoy!