文件名称:game3
介绍说明--下载内容均来自于网络,请自行研究使用
游戏规则如下:
1. 如果一个细胞周围有3个细胞为生(一个细胞周围共有8个细胞),则该细胞为生,即该细胞若原先为死,则转为生,若原先为生,则保持不变;
2. 如果一个细胞周围有2个细胞为生,则该细胞的生死状态保持不变;
3. 在其它情况下,该细胞为死,即该细胞若原先为生,则转为死,若原先为死,则保持不变设定图像中每个像素的初始状态后依据上述的游戏规则演绎生命的变化,由于初始状态和迭代次数不同,将会得到令人叹服的优美图案。-The rules of the game as follows: 1. If a cell has three cells around the living (a cell around a total of eight cells), the living cells that the cells if the original is dead, then to Health, if the original living will remain the same 2 . If a cell has two cells around the living, the state of cell life and death remain the same 3. In other cases, the cells die, that is, the cells if the original living, then to die, if the original is dead, will remain the same settings for each image pixel after the initial state based on the above interpretation of the rules of the game life changes, as the initial state and the different number of iterations, will be very impressed by the width and the beautiful patterns.
1. 如果一个细胞周围有3个细胞为生(一个细胞周围共有8个细胞),则该细胞为生,即该细胞若原先为死,则转为生,若原先为生,则保持不变;
2. 如果一个细胞周围有2个细胞为生,则该细胞的生死状态保持不变;
3. 在其它情况下,该细胞为死,即该细胞若原先为生,则转为死,若原先为死,则保持不变设定图像中每个像素的初始状态后依据上述的游戏规则演绎生命的变化,由于初始状态和迭代次数不同,将会得到令人叹服的优美图案。-The rules of the game as follows: 1. If a cell has three cells around the living (a cell around a total of eight cells), the living cells that the cells if the original is dead, then to Health, if the original living will remain the same 2 . If a cell has two cells around the living, the state of cell life and death remain the same 3. In other cases, the cells die, that is, the cells if the original living, then to die, if the original is dead, will remain the same settings for each image pixel after the initial state based on the above interpretation of the rules of the game life changes, as the initial state and the different number of iterations, will be very impressed by the width and the beautiful patterns.
相关搜索: 生命
(系统自动生成,下载前可以参看下载内容)
下载文件列表
game3.c