Author: Karkanis Rafail
e-mail: [email protected]
Programming Language: ISO/IEC 9899:1990 (C90)
Prints in the terminal the evolution of an Elementary Cellular Automaton with rule 102. The hashtag symbol (#) is used for ALIVE cells and the dash symbol (-) for DEAD cells.
Number of cells, steps, and the initial state can be given by user from the terminal. See examples below.
- Cells: 30
- Steps: 30
- Initial State: Only middle cell ALIVE
cls && cl /W4 main.c core.c settings.c eca.c display.c && main {# of cells} {# of evolution steps} {initial state input number in decimal form}
cls && cl /W4 main.c core.c settings.c eca.c display.c && main
clear && gcc -Wall -ansi main.c core.c settings.c eca.c display.c -o main.out && ./main.out {# of cells} {# of evolution steps} {initial state input number in decimal form}
clear && gcc -Wall -ansi main.c core.c settings.c eca.c display.c -o main.out && ./main.out 10 20 20
clear && cc -Wall -ansi main.c core.c settings.c eca.c display.c -o main.out && ./main.out {# of cells} {# of evolution steps} {initial state input number in decimal form}
clear && cc -Wall -ansi main.c core.c settings.c eca.c display.c -o main.out && ./main.out 20 20