Scatter a handful of cells randomly on the screen, and then push the handle - the cells begin to evolve!
The latest program simulates the growth and evolution of cells!
About Interesting Questions
Every grid in the grid may have cells; Only when there are 2 to 3 cells around a grid can the cells in this grid survive to the next generation. After surviving for a certain number of generations, cells will gradually produce some fixed shapes and show certain rules in random.
I saw this interesting topic in an article introducing Martin Gardner, "Game of Life". When I was in primary school, I especially liked watching Martin Gardner's series. The questions in his column are always very interesting, so I wrote this program this time.
About the program
Culture area
The n * n grid on the left is the cell culture area.
Cells are arranged orderly in this area, and different colors represent different survival generations. For example, white is the new generation. If it meets the conditions and continues to survive in the next generation, it will be upgraded to blue. The oldest cells are purple.
Click the mouse to change the state of the cell. Click the empty space to create a new cell; Click an existing cell to make it disappear. Click the culture area with the mouse to create different arrangements of cells.
Operation area
In order to facilitate mathematical research, an operation panel is specially added to control and observe the state of cells. The operation panel has a color screen, a crystal ball, two handles, and three scroll bars.
Color screen: the top color area. The order of colors represents the upgrading order of cell colors. The leftmost is newborn, and the rightmost is old. The brown scattered dots on the screen roughly indicate the color distribution of each cell. The triangular arrow at the bottom of the screen indicates the age of the oldest cell at present.
Crystal ball: the translucent ball in the upper right corner of the color screen. The liquid level in the ball represents the saturation of the culture area, which is displayed as a percentage. Empty means there is no liquid in the ball, and full of cells means the ball is full of liquid.
Handle 1 (PW): switch, click to switch status. Cell culture starts when it is on, and stops when it is off. If there are no cells in the culture area before the start, a batch will be generated automatically; After closing, if the number of cells in the culture area is adjusted, a new batch will be generated.
Handle 2 (CL): color, click to switch status. It is initially colored, and becomes monochrome after switching. It is convenient to observe the change of cell color in the color state and the shape and distribution of current cells in the monochrome state.
Scroll bar 1 (SZ): the number of cells in the culture area.
Scroll bar 2 (TM): Time of cell change.
Scroll bar 3 (RT): the probability of generating new cells in each grid.