Game of Life 生命遊戲 (I)
Conway’s Game of Life is a kind of cellular automation. It is a kind of zero-player game and it let the player to devise or modify the pattern of the cells and observe the evolution of the cells. (Wikipedia)
It has simple rules to control and evolve the cells. The rules are associated with the relationship of main cells and the surrounding eight cells :
- Too much neighbour cells (bigger than 3 cells) around will cause the death of the main cell.
- Less neighbour cells (smaller than 2 cells) around and the main cell died due to isolation and lacking nutrition.
- Main cell will continue live on to next generation when there are only 3 or 2 neighbouring cells.
- When there are 3 neighbouring cells alive which surrounded the dead cell, it will become alive again.
Because of curiosity, I created the game and put it on CodePen. You can also play this game in my website. Playing with different patterns of life and the results are interesting. There are several patterns that can be discussed, such as the still patterns illustrated below which will remain still unless you add other cells to modify the pattern.
However, there are much more interesting patterns to discuss, so I will present other types of life pattern in the next article. Have fun with Conway’s Game of Life =)