oneshotlm
Compare all models on this prompt →

Conway's Game of Life · qwen3.8-27b

Run Conway's Game of Life on a full-screen canvas grid with click-and-drag to toggle cells, plus play/pause, step, randomize, and clear controls.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Run Conway's Game of Life on a full-screen canvas grid with click-and-drag to toggle cells, plus play/pause, step, randomize, and clear controls.

assistant
thinking
Build a single index.html for Conway's Game of Life. Full-screen canvas, click & drag to toggle cells, controls for play/pause, step, randomize, and clear. Make it reasonably polished.
write /tmp/ws/index.html (7816 bytes)
toolResult

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

assistant
thinking
Verify the file's existence, and maybe it'd be a good idea to do a simple JS syntax check.
bash {"command":"cd /tmp/ws && ls -la index.html && node -e \"\nconst html = require('fs').readFileSync('index.html','utf8');\nconst js = html.ma
toolResult

-rw-r--r--. 1 node node 7820 Aug 15 13:50 index.html JS syntax OK

assistant
thinking
Wait — `new Function(js)` succeeded, but this JS uses the DOM, so it should only throw an exception at runtime, not at parse time. The parse is fine. However, note that `setRunning` inside the click handler is defined before use — no problem, function hoisting. Done.

Done. `index.html` is created in `/tmp/ws` — a single self-contained file with inline CSS/JS, no external resources. Features: - **Full-screen canvas** grid (12px cells, DPR-aware, toroidal wrap-around edges) that redraws on resize while preserving existing cells - **Click & drag** to paint or erase cells (touch supported too) — drag paints the opposite of the state under the cursor, so a click toggles - **Controls**: Play/Pause, Step, Randomize (~25% density), Clear, plus keyboard shortcuts (Space, S, R, C) - **Stats bar** showing generation, population, and grid dimensions - Runs at ~15 generations/sec while playing; starts with a random population

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

modelqwen3.8-27b
vendorQwen
harnesspi-agent
generated2026-08-15

EVALUATION

4/5 working

Game of Life runs on fullscreen canvas; play/pause via space evolves generations, click/drag toggle cells slightly, controls present.

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.4%
on wheel0.0%
on enter + space46.5%
on arrow keys23.5%
on w/a/s/d12.3%
frame spread33.8 / 255
console errors0
js errors none

METRICS

runtime209.8s
tokens in11k
tokens out3.1k
cached0
cost / run$0.0146