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.
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
METRICS
Transcript · 4 messages
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.
thinking
I'm starting to build out the single-page application.
index.html (7333 bytes)Successfully wrote 7333 bytes to index.html
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.