This commit is contained in:
Miloslav Ciz 2024-08-31 14:44:45 +02:00
parent 124b9d1e7c
commit 3f374a4713
85 changed files with 2281 additions and 2272 deletions

View file

@ -24,37 +24,37 @@ The rightmost column is where elementary cellular automata differ from each othe
The following is an output of 32 steps of rule 110 from an initial tape with one cell set to 1. Horizontal dimension represents the tape, vertical dimension represents steps/time (from top to bottom).
```
#
##
###
# ##
#####
# ##
## ###
### # ##
# #######
### ##
# ## ###
##### # ##
# ## #####
## ### # ##
### # #### ###
# ##### ## # ##
### ## ########
# ## #### ##
##### # ## ###
# #### ### # ##
## # ### ## #####
### ## # ##### # ##
# ######## ## ## ###
### ## ###### # ##
# ## ### # #######
##### # #### # ##
# ## ### ## ## ###
## ### # ## ### ### # ##
### # ## ###### ### ## #####
# ######## ### ##### # ##
### ## # ### #### ###
#
##
###
# ##
#####
# ##
## ###
### # ##
# #######
### ##
# ## ###
##### # ##
# ## #####
## ### # ##
### # #### ###
# ##### ## # ##
### ## ########
# ## #### ##
##### # ## ###
# #### ### # ##
## # ### ## #####
### ## # ##### # ##
# ######## ## ## ###
### ## ###### # ##
# ## ### # #######
##### # #### # ##
# ## ### ## ## ###
## ### # ## ### ### # ##
### # ## ###### ### ## #####
# ######## ### ##### # ##
### ## # ### #### ###
# ## ### ### ## # ## # ##
```
@ -74,13 +74,13 @@ int main(void)
// init the tape:
for (int i = 0; i < TAPE_SIZE; ++i)
tape[i] = i == 0;
// simulate:
for (int i = 0; i < STEPS; ++i)
{
for (int j = 0; j < TAPE_SIZE; ++j)
putchar(tape[j] ? '#' : ' ');
putchar(tape[j] ? '#' : ' ');
putchar('\n');
unsigned char state = // three cell state
@ -105,4 +105,4 @@ Discovery of rule 110 is attributed to [Stephen Wolfram](wolfram.md) who introdu
- [Game Of Life](game_of_life.md)
- [Langton's Ant](langtons_ant.md)
- [interaction net](interaction_net.md)
- [interaction net](interaction_net.md)