Release 2
Rule 110
Rule110 made in C.
You can see an example here.
Configuration
Display
STEPS
-int
: The ammount of lines to be printed.MAX_LINE_LEN
-int
: Won't print characters that exceed this position. If the value is0
, it will turn off this option.
Characters
FILLCHAR
-int
: The character that the program will print as1
.EMPTYCHAR
-int
: The character that the program will print as0
.
Settings
PRINT_ARRAY
-int
: If0
, it will print the array before the line display.PRINT_DETAILS
-int
: If0
, it will print useful information before displaying the simulation.
Functions
int calc_rule(int a, int b, int c, int mode);
a
, b
and c
are the states of the cells, left to right. mode == 1
will switch the variables a
and b
.