Source code for a naive implementation of Conway's game of life universe structure.
More...
Source code for a naive implementation of Conway's game of life universe structure.
- Author
- Victor Colomb (vic.c.nosp@m.ol@h.nosp@m.otmai.nosp@m.l.fr)
- Date
- 2021-03-09
◆ list_universe_get_cell()
bool list_universe_get_cell |
( |
universe |
u, |
|
|
int |
row, |
|
|
int |
column |
|
) |
| |
Get a cell's state from a universe.
- Parameters
-
◆ prettyprint_list_universe()
void prettyprint_list_universe |
( |
universe |
u | ) |
|
Pretty-prints a universe to the console.
The universe is formatted as follows:
Universe width: {width}
Universe height: {height}
Number of steps: {number of steps}
Universe cells state:
=====================
- Parameters
-
◆ print_list_cells()
Print a universe's cells to the console.
- Parameters
-
◆ print_list_universe()
Print a universe to the console.
The universe is formatted as follows:
{width} {height}
{number of steps}
Array of cells, . representing a dead cell and 0 a live one.
- Parameters
-