How pablovgs/project-game-of-life works
This C++ Conway’s Game of Life application loads a starting grid, advances generations, and presents the simulation either in an interactive SFML window or as console-generated files. The core stages are grid loading, rule-based state preparation, simultaneous cell updates, and output. The GUI also supports pause/play, stepping, speed changes, reset, and a live-cell count. The graph combines sampled calls and type relationships with capabilities explicitly described in the README; unsampled implementation details are not inferred.
Main entry points: Game.cpp Game orchestration · Grid.cpp Grid and neighbors · main.cpp Mode entry point · GameGraphics.cpp SFML interface
Components 12
Entry and views
- Mode entry point
core/main.cpp - SFML interface
GUI/GameGraphics.cpp
Simulation core
- Game orchestration
core/Game.cpp - Grid and neighbors
core/Grid.cpp - Conway rules
core/Rule.cpp
Cell model
- Cell transitions
core/Cell.cpp - Cell state base
core/CellState.h - Alive state
core/AliveState.h - Dead state
core/DeadState.h
Other components
- User
- Initial grid file
- Generation files
Connections 17
- User → Mode entry point: selects mode
README.md - Initial grid file → Grid and neighbors: provides grid
README.md - Mode entry point → Game orchestration: creates game
core/main.cpp - Mode entry point → Conway rules: creates rule
core/main.cpp - Mode entry point → SFML interface: launches graphics
core/main.cpp - Mode entry point → Game orchestration: runs console export
core/main.cpp - SFML interface → Game orchestration: steps and resets
GUI/GameGraphics.cpp - SFML interface → Grid and neighbors: reads for display
GUI/GameGraphics.cpp - Game orchestration → Grid and neighbors: manages grid
- Game orchestration → Conway rules: uses strategy
- Game orchestration → Generation files: writes generations
README.md - Grid and neighbors → Cell transitions: stores cells
- Grid and neighbors → Alive state: sets loaded state
core/Grid.cpp - Grid and neighbors → Dead state: sets loaded state
core/Grid.cpp - Cell transitions → Cell state base: holds state
core/Cell.cpp - Alive state → Cell state base: extends
core/AliveState.h - Dead state → Cell state base: extends
core/DeadState.h