IN101 project on Conway's Game of Life
list_conway.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(universe u, int row, int column, bool consider_torus);
24 
35 int list_count_neighbors(universe u, int row, int column, bool consider_torus);
36 
46 universe list_step(universe u, bool consider_torus);
47 
58 universe list_simulation(universe u, bool print_to_console, bool generate_images, bool consider_torus);
universe list_simulation(universe u, bool print_to_console, bool generate_images, bool consider_torus)
Get the final state of a universe, according to its step_nb parameter.
Definition: list_conway.c:108
universe list_step(universe u, bool consider_torus)
Get a naive universe&#39;s next iteration. Decrements the universe&#39;s step_nb parameter by one...
Definition: list_conway.c:52
Structure representing a universe: width, height, number of simulation steps and current cells state...
Definition: list_universe.h:18
Header file for a linked list implementation of Conway&#39;s game of life universe structure.
int list_count_neighbors(universe u, int row, int column, bool consider_torus)
Count alive neighbors of a cell in a given universe.
Definition: list_conway.c:34
Header file for a linked list implementation of Conway&#39;s game of life pbm image printer.
linked_list list_neighbors(universe u, int row, int column, bool consider_torus)
Get a list of a cell&#39;s neighbors in a universe.
Definition: list_conway.c:10
Definition: linked_list_cell.h:18