oneshotlm
Compare all models on this prompt →

Conway's Game of Life · qwen3.8-2.4t-a95b

Output generated Cost / run $0.0356 Runtime 46.3s

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

modelqwen3.8-2.4t-a95b
vendorQwen
harnesspi-agent
generated2026-08-13

METRICS

runtime46.3s
tokens in6.8k
tokens out3.7k
cached0
cost / run$0.0356
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
Build a single-file Game of Life app. Fullscreen canvas, draw/edit cells via drag, controls: play/pause, step, randomize, clear. Might also add speed and grid size. Self-contained.
→ write /tmp/ws/index.html (10280 bytes)
toolResult

Successfully wrote 10280 bytes to /tmp/ws/index.html

assistant
thinking
Quick sanity check that the file exists. Done.

Created `/tmp/ws/index.html` — a fully self-contained Conway's Game of Life with no external resources. **Features:** - **Full-screen canvas grid** (16px cells, toroidal wrap-around edges, DPR-aware rendering) - **Click-and-drag painting** — the first cell clicked determines whether you're drawing or erasing; works with mouse and touch - **Controls:** Play/Pause, Step, Randomize (~28% density soup), Clear - **Speed slider** (1–60 generations/sec) - **Keyboard shortcuts:** Space = play/pause, S = step, R = randomize, C = clear - **Live stats** showing generation count and population - Grid preserves existing cells on window resize; starts with a random soup so it's immediately interesting