Example

Cellular Automata

3

McPepic 2022-03-04 19:12

Cellular Automata is a simulation of cells in a grid. Each cell is either active or inactive (alive or dead). Each iteration of the simulation, every cell in the grid is assigned a value based on how many living neighbors (0 to 8) it has. A threshold value can be set to determine how few neighbors a cell has to have to die, as well as another threshold that allows a dead cell to come back to life. This can be used to generate pseudo-random noise.

In this simulation, you can set the chance of a cell starting off alive, as well as the max neighbor count for a cell to die and minimum neighbor count for a cell to live.

After generating, the R key can be used to generate a new board.

The C key is used to iterate to the next generation/cycle of the simulation.

Feel free to mess around with values and/or use it in your own game! :)


McPepic 2022-03-04 19:13

Just in case you need it @was8bit

:)


was8bit 2022-03-05 04:24

SWEET!!! Thanks so much :D


was8bit 2022-03-05 17:03

BTW, what was the settings for the image you captured... I am having trouble getting that result...


McPepic 2022-03-05 17:07

I don’t know exactly what I set it to, but I usually go from 50 to 70 for the starting chance, around five for the live chance and 0-2 for the death chance. This should help you get started.

Also, each iteration will smooth out the result until it settles into a stable situation. This allows you to choose how noisy the result should be.


was8bit 2022-03-06 04:34

Thanky :)


was8bit 2022-03-06 05:16

Here is a smooth version ;)


McPepic 2022-03-06 12:57

This is really cool! Glad I could help. If you need anything else, let me know. :)


was8bit 2022-03-06 13:16

Thanks so much :D


Log in to reply.