oneshotlm
Compare all models on this prompt →

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

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 ↗
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
The user wants a full-screen Conway's Game of Life implementation in a single HTML file with:
1. Full-screen canvas grid
2. Click-and-drag to toggle cells
3. Play/pause button
4. Step button
5. Randomize button
6. Clear button

Let me build this as a self-contained single HTML file with inline CSS and JS.
write /tmp/ws/index.html (8699 bytes)
toolResult

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

assistant
thinking
The file has been written successfully. Let me verify it exists and looks correct.

Done! The file `/tmp/ws/index.html` is ready. Here's what it includes: - **Full-screen canvas** with Conway's Game of Life rendered on a grid - **Click-and-drag** to toggle cells on/off (works with mouse and touch) - **⏸ Pause / ▶ Play** button to start/stop the simulation - **⏭ Step** to advance one generation manually - **🎲 Random** to populate the grid with a random pattern (~35% density) - **🗑 Clear** to wipe the grid - **Scroll wheel zoom** (zoom toward cursor position) with panning via offset - **Live stats** showing generation count and population - Subtle grid lines and a soft glow effect on living cells for visual appeal - Fully self-contained — zero external dependencies, no network requests

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

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

EVALUATION

4/5 working

Game of Life runs automatically with controls; click/wheel affect state, click toggled cell and pause button works.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion15.1%
on click3.2%
on drag1.2%
on wheel7.4%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d2.3%
frame spread27.6 / 255
console errors0
js errors none

METRICS

runtime23.0s
tokens in6.5k
tokens out3.4k
cached4.6k
cost / run$0.0024