📜 ⬆️ ⬇️

And again the game "Life"

image 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.
image


So, in addition to the standard conditions of the birth of life and its death, we will have the conditions of "growth" and "degradation":

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:

image


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.

Web implementation

Web Mirror

Windows application

Source: https://habr.com/ru/post/228203/


All Articles