The theme of the game "Life", more than once rose to Habré . Various modifications of the game have been described, I want to present another one. Modification of the game is quite trivial, but gives more opportunities to observe than the original.
In the classic rules invented by John Conway , each cell of the playing field can only be in two states: either the cell is empty or filled with a chip. Like evolution in nature, where development went from unicellular to multicellular, it is logical to imagine the development of the game "Life", where there can be more than one chip in a cell. Thus, the game field can be represented as a two-dimensional array of positive integers.
So, in addition to the standard conditions of the birth of life and its death, we will have the conditions of "growth" and "degradation":
an empty cell, or a cell with a value of 0, is assigned a value of 1, provided that it is surrounded by 3 cells with a value greater than 0;
a cell with a value greater than 0 will “grow”, that is, it will receive +1, provided that it has 2-3 neighbors with a value greater than 0;
a cell with a value greater than 0 will take the value 0 if it has 1, 4-5 neighbors that have a value greater than 0;
a cell with a value above 0 will "degrade", that is, its value will decrease by 1 (-1), provided that all neighboring cells have 0, or 6-8 neighbors have a value greater than 0.
In addition, it makes sense to determine the limit of cell growth. It is also a condition that determines what happens to a cell when it reaches the maximum. ')
Interpretation of the rules in the application settings:
These rules, of course, can be varied and get results.
As we can see, the behavior of cells with new rules has become even more complex and interesting to observe.