oneshotlm
Compare all models on this prompt →

Snake · gpt-5.1-codex-mini

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 ↗
transcript · 8 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
bash {"command":"pwd"}
toolResult

/tmp/ws

assistant
bash {"command":"ls"}
toolResult

(no output)

assistant
thinking
**Creating the game file**

I’m getting ready to create an index.html for a snake game. I’ll remember to include the canvas, style, and script all in one file. It seems I need arrow controls for movement, a growing tail, food, a score display, and also conditions for game over and restart. I’ll write everything inside the script tag. I should also provide a final message to let the user know the file is created.
write index.html (6168 bytes)
toolResult

Successfully wrote 6168 bytes to index.html

assistant

Created `index.html` containing a fully self-contained Snake game with inline styling and scripting.

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

modelgpt-5.1-codex-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Snake game starts but arrow key press immediately triggers Game Over, suggesting a movement/collision bug.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space0.0%
on arrow keys1.0%
on w/a/s/d0.0%
frame spread12.6 / 255
console errors0
js errors none

METRICS

runtime18.8s
tokens in6.8k
tokens out2.2k
cached4.2k
cost / run$0.0052