IN101 project on Conway's Game of Life
list_conway_expandable.h
Go to the documentation of this file.
1 
8 #include <stdbool.h>
9 
10 #include "list_universe.h"
11 #include "list_pbm_writer.h"
12 
23 linked_list list_neighbors_expandable(universe u, int row, int column);
24 
35 int list_count_neighbors_expandable(universe u, int row, int column);
36 
44 
55 
66 universe list_simulation_expandable(universe u, bool print_to_console, bool generate_images);
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&#39;s neighbors in a universe.
Definition: list_conway_expandable.c:10
Header file for a linked list implementation of Conway&#39;s game of life universe structure.
Header file for a linked list implementation of Conway&#39;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&#39;s next iteration. Decrements the universe&#39;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