IN101 project on Conway's Game of Life
list_universe.h
Go to the documentation of this file.
1 
8 #include <stdio.h>
9 #include <stdbool.h>
10 
11 #include "linked_list_cell.h"
12 
13 #ifndef CONWAY_LIST_UNIVERSE
14 #define CONWAY_LIST_UNIVERSE
15 
16 typedef struct universe universe;
17 
18 struct universe
19 {
20  int width;
21  int height;
22  int step_nb;
23  linked_list cells;
24 };
25 
33 bool list_universe_get_cell(universe u, int row, int column);
34 
41 
56 
74 
75 #endif
void print_list_cells(universe u)
Print a universe&#39;s cells to the console.
Definition: list_universe.c:28
Structure representing a universe: width, height, number of simulation steps and current cells state...
Definition: list_universe.h:18
bool list_universe_get_cell(universe u, int row, int column)
Get a cell&#39;s state from a universe.
Definition: list_universe.c:10
void print_list_universe(universe u)
Print a universe to the console.
Definition: list_universe.c:76
void prettyprint_list_universe(universe u)
Pretty-prints a universe to the console.
Definition: list_universe.c:82
Header file for a linked list implementation.
Definition: linked_list_cell.h:18