Conway's Game of Life · llama-3.1-70b-instruct
Output generated Cost / run $0.0022 Runtime 23.2s
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 (3016 bytes)Successfully wrote 3016 bytes to index.html
This code creates a full-screen canvas grid where you can click and drag to toggle cells. There are also play/pause, step, randomize, and clear controls. The Game of Life is implemented using the standard rules: any live cell with fewer than two live neighbors dies, any live cell with two or three live neighbors lives, any live cell with more than three live neighbors dies, and any dead cell with exactly three live neighbors becomes a live cell.