59
Rule 30
(lemmy.dbzer0.com)
Behavior rules:
Posting rules:
NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.
If you have any questions, feel free to contact us on our matrix channel or email.
Other 196's:
Yeah, this is one of Wolfram's "elementary cellular automata". This is "rule 30". It's actually a one-dimensional cellular automata. Only neighbors to the left and right are considered. The Y axis represent time / generations / iterations.
So there are 256 possible rules. Each represented by an 8-bit unsigned integer in ASCII format.
The "scenarios" are statically defined like this:
And we can use a binary number like this to map scenario outcomes to create a rule set.
Where each bit describes the outcome of the scenario.
So if all neighbors are alive (111) the next generation is dead (0). If the left neighbor is alive but right is not (110) the next generation is alive (1).
I'm improving my software and I think some of the changes I've made can make the simulation more clear and also more aesthetic.
In these images, up arrows are alive cells and down arrows are dead cells. I also included 2 images with the "links" feature enabled that shows the links between alive and dead cells across generations.
Bonus (this just looks cool):