oneshotlm
Compare all models on this prompt →

Snake · ministral-14b-2512

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 · 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 /tmp/ws/index.html (7379 bytes)
toolResult

Successfully wrote 7379 bytes to /tmp/ws/index.html

assistant

The Snake game is ready! Here's what the `index.html` file contains: - A **playable Snake game** with: - Arrow-key controls (↑, ↓, ←, →) - A growing tail when eating food (red squares) - Score tracking (increases by 10 per food) - Game-over detection (collision with walls or self) - Restart button to reset the game - Speed increases as the score grows ### How to Play: 1. Use **arrow keys** to control the snake. 2. Eat the **red food** to grow longer and increase your score. 3. Avoid hitting the **walls** or **yourself**. 4. When game over, click **"Play Again"** to restart. The game is **self-contained** (no external dependencies) and runs entirely in the browser. Open `index.html` in any modern browser to play!

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

modelministral-14b-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Snake game renders with score and food; arrow keys move snake into wall causing game over with restart button.

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 spread87.8 / 255
console errors0
js errors none

METRICS

runtime21.0s
tokens in4.8k
tokens out2.2k
cached4.0k
cost / run$0.0007