oneshotlm
Compare all models on this prompt →

Conway's Game of Life · qwen3.8-max

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-file Game of Life with a fullscreen canvas, drag-to-draw, and control features. Make it self-contained.
write /tmp/ws/index.html (10604 bytes)
toolResult

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

assistant
thinking
I'll verify that the file exists and perform a simple sanity check on the HTML structure.
bash {"command":"ls -la /tmp/ws/index.html && node -e \"\nconst html = require('fs').readFileSync('/tmp/ws/index.html','utf8');\nconst js = html.
toolResult

-rw-r--r--. 1 node node 10615 Aug 3 23:54 /tmp/ws/index.html JS syntax OK, no external refs: true

assistant
thinking
The JS syntax check passed (note: `new Function(js)` doesn't execute, it just parses. Since executing it would require a DOM anyway). The file is self-contained with no external references. Done.

Done. `/tmp/ws/index.html` is a fully self-contained single-file Game of Life (JS syntax verified, zero external resources): **Features:** - **Full-screen canvas grid** — cells sized at 14px, toroidal (edges wrap), adapts on window resize while preserving live cells - **Click & drag to toggle** — pointer events with capture; the first cell pressed decides draw vs. erase mode for the whole stroke - **Controls** — Play/Pause, Step, Randomize (~28% density), Clear, plus a speed slider (1–60 gen/s) - **Stats HUD** — live generation counter and population - **Keyboard shortcuts** — Space (play/pause), S (step), R (randomize), C (clear) - **Extras** — devicePixelRatio-aware rendering for crisp display, seeded with gliders + light noise so it's interesting immediately Open it in any browser — no network needed.

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-max
vendorQwen
harnesspi-agent
generated2026-08-03

EVALUATION

4/5 working

Conway's Game of Life simulation with grid, play/pause, step, randomize, and clear controls; space starts simulation, evolving correctly.

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.6%
on wheel0.0%
on enter + space15.8%
on arrow keys1.7%
on w/a/s/d1.4%
frame spread24.3 / 255
console errors0
js errors none

METRICS

runtime70.0s
tokens in12k
tokens out4.1k
cached7.3k
cost / run$0.0367