中国开发网: 论坛: 程序员情感CBD: 贴子 884841
bjwf: 我翻译不好,免为其难说说大概意思吧
The Game of Life, invented by John Conway in 1970, is an example of a zero-player “game” known
as a cellular automaton. The game consists of a two-dimensional world extending infinitely in all
directions, divided into “cells.” Each cell is either “dead” or “alive” at a given “generation.” The
game consists of a set of rules that describe how the cells evolve from generation to generation.
These rules calculate the state of a cell in the next generation as a function of the states of its
neighboring cells in the current generation. In a 2-D world, a cell’s neighbors are those 8 cells
vertically, horizontally, or diagonally adjacent to that cell. Conway’s set of rules are summarized
as:

在一个无限大的棋盘格子上,每个格子在每个指定的"代"有 生,死两种关态, 有下面几条规则来说明一个格子如果从一代进化到一下代后的状态。这些规则是由格子以及其邻居格子的状态决定的。每个格子有8个邻居(参考windows挖雷游戏)

1. A live cell with fewer than two live neighbors dies.
一个活的格子如果有少于两个的活的邻居格子,则死

2. A live cell with more than three live neighbors also dies.
一个活的格子如果有多于三个的活的邻居,则死

3. A live cell with exactly two or three live neighbors lives.
一个活的格子如果有2个或3个活的邻居,则活

4. A dead cell with exactly three live neighbors becomes alive.
一个死的格子如果有3个活的邻居,则复活


Part A: Implementing Evolution (In-Lab)

简要的说就是写个程序实现这个游戏和规则。有a,b,c,d,e等要求,自已慢慢看吧。
试图在互联网上划出国界的举动是愚蠢的!!!
把人当成猪羊圈养,草料永远都不够!把人当人待,人有无限的创造力! “人口减少一半,人们两倍富有”的观念为“一种非常糟糕的自甘堕落—这背后的潜台词是,似乎中国人是封闭围栏中的动物,对周围那些自己赖以生存的资源,除了咀嚼,别无办法。”

我的像册:http://picasaweb.google.com/bjwf2000/
我的主页: http://bjwf2000.googlepages.com/

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录