You can see an example here.
STEPS: The ammount of lines to be printed.MAX_LINE_LEN: Won't print characters that exceed this position. If the value is0, it will turn off this option.
FILLCHAR: The character that the program will print as1.EMPTYCHAR: The character that the program will print as0.
PRINT_DETAILS: If1, it will print useful information before displaying the simulation.
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.
-
mode == 0:a b c r 1 0 0 0 -
mode == 1:c b a r 0 0 1 0
Where r is the value returned.
You can see an example here.
rule110-netpbm.o > output.pbmHEIGHT: The height of the.pbmfile.WIDTH: The width of the.pbmfile.
int calc_rule(int a, int b, int c, int mode);
int calc_array();- The image does weird shit depending on the width. If HEIGHT > WIDTH, the image is ok.
- Format the code for the ascii version.v
- Format the code for the pmb version.v
- Add
compile.sh - Make the simulation infinite if steps is 0.
- Make a version in SDL2?

