Raxol. Demo. GameOfLife
(Raxol v2.6.0)
View Source
Conway's Game of Life implementation for the demo showcase. Features age-based coloring where newer cells are brighter.
Summary
Functions
Creates a new grid with random initial state.
Creates an R-pentomino pattern (small but produces interesting evolution).
Returns positions of all live cells (for particle explosion).
Counts the number of live cells.
Renders the grid to ANSI escape sequences.
Advances the grid by one generation.
Types
Functions
Creates a new grid with random initial state.
Creates an R-pentomino pattern (small but produces interesting evolution).
Returns positions of all live cells (for particle explosion).
Counts the number of live cells.
Renders the grid to ANSI escape sequences.
Advances the grid by one generation.