oneshotlm
Compare all models on this prompt →

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

Output generated Cost / run $0.1115 Runtime 38.1s

Prompt for this run

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 ↗

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

METRICS

runtime38.1s
tokens in8.1k
tokens out3.7k
cached4.5k
cost / run$0.1115
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.