Conway's Game of Life · gpt-4.1-mini
Output generated Cost / run $0.0047 Runtime 24.8s
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.
index.html (5898 bytes)Successfully wrote 5898 bytes to index.html
I have created a self-contained single-page web app in index.html that runs Conway's Game of Life on a full-screen canvas. You can click and drag to toggle cells. Controls at the bottom allow you to play/pause, step one generation, randomize, and clear the grid. All code, CSS, and JS are inline with no external dependencies. You can open index.html in a web browser to try it out.