Skip to content

Release 2

Compare
Choose a tag to compare
@8dcc 8dcc released this 21 Nov 18:15
· 21 commits to main since this release
0d0f3f0

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 is 0, it will turn off this option.

Characters

  • FILLCHAR-int: The character that the program will print as 1.
  • EMPTYCHAR-int: The character that the program will print as 0.

Settings

  • PRINT_ARRAY-int: If 0, it will print the array before the line display.
  • PRINT_DETAILS-int: If 0, 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.