How adrian-utz/gameoflife works
This is a Java Swing implementation of Conway’s Game of Life. The workflow loads the glider pattern, initializes a grid, repeatedly applies the Life rules, and redraws the grid in a window. The sampled sources show the simulation, cell, and rendering relationships; the pattern file’s contents and any behavior of the omitted Automaton methods were not inspected.
Main entry points: Conway.java Game Controller · GridCanvas.java Cell Grid · gliders.cells.txt Glider Pattern · Cell.java Cell State
Components 7
Simulation
- Game Controller
Conway.java - Glider Pattern
gliders.cells.txt - Life Rules
Conway.java
Grid State
- Cell Grid
GridCanvas.java - Cell State
Cell.java
Display
- Swing Window
Other components
- User
Connections 6
- User → Game Controller: starts
Conway.java - Game Controller → Glider Pattern: reads
Conway.java - Game Controller → Cell Grid: initializes and updates
Conway.java - Game Controller → Life Rules: applies
Conway.java - Cell Grid → Cell State: stores and draws
GridCanvas.java - Game Controller → Swing Window: displays in
Conway.java