nxcgol
An implementation of Conway's Game of Life for the Nintendo Switch
 
Loading...
Searching...
No Matches
Simulation logic

Functions

int count_neighbors (int x, int y)
 get the neighbors of this cell
 
void randomize_matrix ()
 generate cells for new colony
 
void restart_simulation ()
 reset history, generation_index and increment restart_index, generate new colony.
 
int main (int argc, char **argv)
 

Detailed Description

Function Documentation

◆ count_neighbors()

int count_neighbors ( int  x,
int  y 
)

get the neighbors of this cell

◆ main()

int main ( int  argc,
char **  argv 
)

◆ randomize_matrix()

void randomize_matrix ( )

generate cells for new colony

◆ restart_simulation()

void restart_simulation ( )

reset history, generation_index and increment restart_index, generate new colony.