Snake · mistral-large-2512
Output generated Cost / run $0.0044 Runtime 23.9s
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.
/tmp/ws/index.html (6147 bytes)Successfully wrote 6147 bytes to /tmp/ws/index.html
The Snake game is ready! You can open `/tmp/ws/index.html` in a web browser to play. Here's a summary of the features: - **Arrow-key controls** (Up, Down, Left, Right) - **Growing tail** when eating food - **Randomly spawned food** - **Score tracking** (10 points per food) - **Game-over state** on wall/self collision - **Restart button** to play again - **No external dependencies** (fully self-contained) Enjoy! 🚀