oneshotlm
Compare all models on this prompt →

Snake · nemotron-3-ultra-550b-a55b

Output generated Cost / run $0.0060 Runtime 16.5s

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

modelnemotron-3-ultra-550b-a55b
vendorNVIDIA
harnesspi-agent
generated2026-07-22

METRICS

runtime16.5s
tokens in4.9k
tokens out1.6k
cached128
cost / run$0.0060
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
We need to produce a single index.html with a playable Snake game. Must include canvas, arrow-key controls, growing tail, food, score, game-over and restart. Use no external resources. Provide HTML with style and script. We'll write the file.
→ write /workspace/index.html (4508 bytes)
toolResult

Successfully wrote 4508 bytes to /workspace/index.html

assistant
thinking
We have written the file. Need to confirm it's correct. Provide final answer.

The file **`index.html`** has been created in the current directory with a complete, self‑contained Snake game: - Canvas rendering with a 20×20 grid - Arrow‑key controls (up/down/left/right) - Growing tail when food is eaten - Score and persistent high‑score (saved in `localStorage`) - Game‑over overlay and a **Restart** button (also press **Space** to restart) - All CSS and JavaScript are inline; no external resources are used. You can open `index.html` in any browser to play. Enjoy!