oneshotlm
Compare all models on this prompt →

Conway's Game of Life · claude-opus-4.8

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 · 4 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
I'm starting to build out the single-page application.
write index.html (7333 bytes)
toolResult

Successfully wrote 7333 bytes to index.html

assistant

Created `index.html` — a fully self-contained Conway's Game of Life. Features: - **Full-screen canvas** that resizes with the window (preserving existing cells) - **Click-and-drag to toggle** cells (paints alive/dead based on the first cell you touch); touch supported too - **Play/Pause**, **Step**, **Randomize**, **Clear** buttons - **Speed** and **Cell size** sliders - Toroidal (wrap-around) grid, generation + live-cell counter - Keyboard shortcuts: `Space` play/pause, `s` step, `r` randomize, `c` clear Open it in any browser — no network or external files 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

modelclaude-opus-4.8
vendorAnthropic · Claude
harnesspi-agent
generated2026-07-08

EVALUATION

4/5 working

Game of Life simulation runs with visible cellular evolution, controls for play/step/randomize/clear all functional.

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.3%
on wheel0.0%
on enter + space50.0%
on arrow keys29.2%
on w/a/s/d18.7%
frame spread36.9 / 255
console errors0
js errors none

METRICS

runtime38.1s
tokens in3.4k
tokens out3.7k
cached4.5k
cost / run$0.1115