Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439

The Game of Life, invented by the mathematician John Conway, is a simple cellular automaton that embodies elementary life-like features. Cells are either alive (red) or dead (white). Living cells die from loneliness (if they have less than 2 living neighbours) or overcrowding (4 or more living neighbours). If a dead cell has exactly 3 living neighbours, then a birth occurs and it becomes alive.

Many interesting patterns have been found; some are demonstrated here. The Game of Life exhibits many life-like behaviours. For instance, starting from a random configuration, regular patterns of fixed, and cycling elements can quickly emerge.

How to use the simulation

You need to have Java version 1.5 installed for your browser in order to run the simulation applet.

There are 3 options to start the simulation

One you have created your initial pattern, click the Start button to begin the simulation. You can control the simulation using the following options:

The drop-down list “Pattern” provides a list of known initial grid configurations that lead to interesting behaviour. Selecting a configuration from the pattern list stops the running simulation and re-initialises the grid.

Experiments

Background

A very interesting aspect of the Game of Life is that is has been proven computationally universal. This means that any program that can be executed by a computer can also be executed by a Game of Life simulation. In order to do this, the input can be encoded in form of certain live cell patterns. The output can be read from the patterns that occur in the “output area” of the cell grid. Although this is probably not the most efficient method for most computations, this result shows how local interactions of simple entities (here – cells) can lead the emergence of very advanced behaviours.