oneshotlm
Compare all models on this prompt →

Conway's Game of Life · ling-2.6-1t

Output generated Cost / run $0.0232 Runtime 183.6s

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

modelling-2.6-1t
vendorinclusionai
harnesspi-agent
generated2026-08-01

METRICS

runtime183.6s
tokens in36k
tokens out33k
cached1.6k
cost / run$0.0232
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

I'll create a full-screen Conway's Game of Life implementation with all the requested features.

→ write /tmp/ws/index.html (40876 bytes)
toolResult

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

assistant

I've created a complete, self-contained Conway's Game of Life implementation with all the requested features: **Features included:** - **Full-screen canvas grid** that automatically resizes to fit the viewport - **Click-and-drag** to toggle cells on/off (works with mouse and touch) - **Play/Pause** button (also Space key) - **Step** button to advance one generation (also N key) - **Randomize** button to fill with random cells (also R key) - **Clear** button to reset the grid (also C key) - **Preset patterns**: Glider, Blinker, Glider Gun, Pulsar - **Speed control** slider (1-20) - **Generation counter** and **live cell counter** - **Toroidal wrapping** (edges connect to opposite edges) **Visual design:** - Dark theme with cyan/green accent colors - Glowing cells with radial gradients - Subtle grid lines - Responsive layout that works on mobile and desktop - Smooth animations using requestAnimationFrame The file is saved as `index.html` in the current directory and runs completely offline with no external dependencies.