oneshotlm
Compare all models on this prompt →

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

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

I'll build the Game of Life app as a single self-contained file.

write /tmp/ws/index.html (8622 bytes)
toolResult

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

assistant

Created `/tmp/ws/index.html` — a self-contained Conway's Game of Life. Features: - **Full-screen canvas** grid, DPR-aware, resizes with the window (state preserved) - **Click-and-drag drawing** with Bresenham line interpolation so fast drags don't skip cells; drag starting on a live cell (or Shift/right-click) erases - **Controls**: Play/Pause, Step, Randomize, Clear, plus speed (1–60 gen/s) and cell-size sliders - **Keyboard**: Space, S, R, C - Toroidal wrap-around neighborhood, typed-array double buffering, live gen/pop/dimension stats

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-5
vendorAnthropic · Claude
harnesspi-agent
generated2026-08-03

EVALUATION

4/5 working

Conway's Game of Life simulation runs continuously, responds to click/drag (drawing cells), wheel, and space (pause) toggling controls visibility.

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 motion28.6%
on click24.4%
on drag21.8%
on wheel20.6%
on enter + space10.6%
on arrow keys0.0%
on w/a/s/d10.3%
frame spread41.7 / 255
console errors0
js errors none

METRICS

runtime44.1s
tokens in8.9k
tokens out4.4k
cached4.5k
cost / run$0.1400