oneshotlm
Compare all models on this prompt →

Snake · nova-2-lite-v1

Output generated Cost / run $0.0114 Runtime 22.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.

⛨ 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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime22.8s
tokens in7.4k
tokens out3.7k
cached0
cost / run$0.0114
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
thinking
[REDACTED].
→ write index.html (13517 bytes)
toolResult

Successfully wrote 13517 bytes to index.html

assistant
thinking
[REDACTED].

I've created a complete, self-contained Snake game in a single HTML file! The game includes: ✅ Canvas-based rendering with smooth graphics ✅ Arrow key controls ✅ Growing snake tail when eating food ✅ Score tracking ✅ Increasing difficulty (speed) as you eat more ✅ Wall and self-collision detection ✅ Game over screen with restart functionality ✅ Responsive design that works on different screen sizes ✅ Visual enhancements with gradients and shine effects The game is fully contained in `index.html` with no external dependencies. Simply open the file in any modern browser to play! Features included: - The snake grows longer with each food item eaten - Score increases by 10 points per food - Game speed increases slightly with each food collected - Visual feedback for collisions and game states - Clean, modern UI with gradient backgrounds - Mobile-friendly controls (though designed for keyboard) You can start playing right away by opening the index.html file in your browser!