int list_count_neighbors_expandable(universe u, int row, int column)
Count alive neighbors of a cell in a given universe.
Definition: list_conway_expandable.c:27
Structure representing a universe: width, height, number of simulation steps and current cells state...
Definition: list_universe.h:18
linked_list list_neighbors_expandable(universe u, int row, int column)
Get a list of a cell's neighbors in a universe.
Definition: list_conway_expandable.c:10
Header file for a linked list implementation of Conway's game of life universe structure.
Header file for a linked list implementation of Conway's game of life pbm image printer.
universe recenter_universe(universe u)
Recenter a universe (move to all positive, increase height and width if needed)
Definition: list_conway_expandable.c:45
universe list_step_expandable(universe u)
Get a naive universe's next iteration. Decrements the universe's step_nb parameter by one...
Definition: list_conway_expandable.c:101
Definition: linked_list_cell.h:18
universe list_simulation_expandable(universe u, bool print_to_console, bool generate_images)
Get the final state of a universe, according to its step_nb parameter.
Definition: list_conway_expandable.c:159