Files
wlgol/openspec/changes/gol-simulation/tasks.md
T
arek 00a2b6b03e docs: add gol-simulation OpenSpec change
Plan Game of Life mechanics: Conway rules, pause/resume, stepping,
speed control, and paused-only cell editing with drag painting.
2026-11-08 15:39:25 +01:00

839 B

Tasks

1. Simulation core

  • 1.1 Implement Conway tick using a second grid buffer and swap, verifying a known pattern (blinker) oscillates.
  • 1.2 Add tick timing in the frame loop with adjustable interval, verifying ticks occur at configured rate.

2. Controls

  • 2.1 Wire pause/step/speed actions to simulation state, verifying pause stops ticks and step advances one generation.
  • 2.2 Add default key bindings for p/n/+/- and verify config tests pass.

3. Editing

  • 3.1 Implement paused-only cell editing on left/right click, verifying clicks change cell state only when paused.
  • 3.2 Implement drag painting while paused, verifying drag sets/clears cells.

4. Verification

  • 4.1 Build and run ctest, verifying all tests pass.
  • 4.2 Manual run: verify pause, step, speed, editing, and Esc.