Data Structures | |
struct | Color |
struct | Config |
Functions | |
bool | parse_rgb (const char *value, Color *color) |
parse r,g,b string into Color | |
void | parse_config_file (Config *config) |
parse configuration file | |
Variables | |
Config | config |
default configuration | |
bool | matrix [COLS][ROWS] |
bool | matrix_next [COLS][ROWS] |
bool | history [HISTORY_SIZE][COLS][ROWS] |
int | history_index = 0 |
generations in history, for comparison to check for oscillation | |
int | generation_index = 0 |
generation number | |
int | restart_index = 0 |
colony number | |
int | stagnant_index = 0 |
number of generations colony has been stagnant | |
void parse_config_file | ( | Config * | config | ) |
parse configuration file
config | populates Config config |
Config config |
default configuration
int generation_index = 0 |
generation number
bool history[HISTORY_SIZE][COLS][ROWS] |
int history_index = 0 |
generations in history, for comparison to check for oscillation
int restart_index = 0 |
colony number
int stagnant_index = 0 |
number of generations colony has been stagnant