How nishanth964/conway-8fold-simulation works
Conway: 8Fold Simulation is a Pygame app for editing and running a Conway’s Game of Life grid. The user’s main workflow is to place or drag cells (which are mirrored into an eightfold-symmetric pattern), then start, step, pause, or restart generations and adjust their speed. Game coordinates input, simulation updates, and rendering; Grid owns cell state, symmetry, and B3/S23 evolution. The README documents these capabilities; the relationships below are limited to those shown in the sampled source or README.
Main entry points: game.py Game coordinator · grid.py Grid state · drawing.py Rendering · controls.py Control panel
Components 8
Application
- App launcher
main.py - Game coordinator
game.py
Simulation
- Grid state
grid.py - Symmetric placement
grid.py - Life evolution
grid.py
Interface
- Control panel
controls.py - Rendering
drawing.py
Other components
- User
Connections 11
- User → Game coordinator: controls
README.md - App launcher → Game coordinator: starts
main.py - Game coordinator → Control panel: creates and updates
game.py - Game coordinator → Rendering: creates and renders
game.py - Game coordinator → Grid state: creates and clears
game.py - Game coordinator → Symmetric placement: places cells
game.py - Game coordinator → Life evolution: advances generations
game.py - Rendering → Grid state: reads cells
drawing.py - Rendering → Control panel: reads controls
drawing.py - Symmetric placement → Grid state: sets cells
grid.py - Life evolution → Grid state: replaces cell state
grid.py