Conway's Game of Life · claude-opus-5
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.
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.
I'll build the Game of Life app as a single self-contained file.
/tmp/ws/index.html (8622 bytes)Successfully wrote 8622 bytes to /tmp/ws/index.html
Created `/tmp/ws/index.html` — a self-contained Conway's Game of Life. Features: - **Full-screen canvas** grid, DPR-aware, resizes with the window (state preserved) - **Click-and-drag drawing** with Bresenham line interpolation so fast drags don't skip cells; drag starting on a live cell (or Shift/right-click) erases - **Controls**: Play/Pause, Step, Randomize, Clear, plus speed (1–60 gen/s) and cell-size sliders - **Keyboard**: Space, S, R, C - Toroidal wrap-around neighborhood, typed-array double buffering, live gen/pop/dimension stats
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
EVALUATION
Conway's Game of Life simulation runs continuously, responds to click/drag (drawing cells), wheel, and space (pause) toggling controls visibility.
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.