oneshotlm
Compare all models on this prompt →

Conway's Game of Life · glm-5.3

Output generated Cost / run $0.0136 Runtime 24.9s

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

modelglm-5.3
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-27

METRICS

runtime24.9s
tokens in5.0k
tokens out2.2k
cached2.8k
cost / run$0.0136
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
→ write index.html (6694 bytes)
toolResult

Successfully wrote 6694 bytes to index.html

assistant

Done — `index.html` contains the full app: - **Full-screen canvas grid** with a subtle grid overlay; cells auto-fit on window resize - **Click & drag** to toggle cells (drag paints with the value of the first cell clicked; right-click drag erases) - **Controls**: ▶ Play/Pause, Step, Randomize (25% density), Clear, plus a speed slider (1–30 gen/s) - **Live stats** (generation & live cell count) and **keyboard shortcuts**: Space, S, R, C All CSS/JS is inline and there are no external resources — it runs fully offline.