oneshotlm
Compare all models on this prompt →

Conway's Game of Life · grok-4.6

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
The user wants me to build a Conway's Game of Life web app as a single self-contained HTML file. Let me create a polished, full-screen canvas implementation with all the requested features.

I'll build a self-contained Conway's Game of Life page with a full-screen canvas, click-and-drag painting, and the requested controls.

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

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

assistant
thinking
The file was written successfully. The user asked for a single-page Game of Life app in index.html. I've created it with all the requested features. I should confirm the file exists.

`index.html` is ready — a self-contained Game of Life page with no external resources. - Full-window canvas grid that resizes with the viewport (toroidal wrap) - Click or drag to paint; the first cell sets paint vs erase for that stroke - **Play / Pause**, **Step**, **Randomize**, **Clear**, plus a speed slider - Generation and live-cell counts - Shortcuts: Space, N (step), R, C

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

modelgrok-4.6
vendorxAI · Grok
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

Conway's Game of Life renders on full-screen grid; Enter/Space toggles play, simulation evolves correctly, drag toggles cells.

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.1%
on drag0.5%
on wheel0.0%
on enter + space50.8%
on arrow keys31.3%
on w/a/s/d23.8%
frame spread46.6 / 255
console errors0
js errors none

METRICS

runtime42.8s
tokens in6.8k
tokens out3.7k
cached1.7k
cost / run$0.0336