oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗

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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

METRICS

runtime42.6s
tokens in7.1k
tokens out3.6k
cached1.7k
cost / run$0.0061
Transcript · 4 messages
user

Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.

assistant
→ write /workspace/index.html (9967 bytes)
toolResult

Successfully wrote 9967 bytes to /workspace/index.html

assistant

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!