Sha256: cb8570cca3ed7a5e9ac557842c834a90c2c62efab8933b89787de51118ec3101

Contents?: true

Size: 672 Bytes

Versions: 60

Compression:

Stored size: 672 Bytes

Contents

John Conway's Game of Life

The Rules
---------
The Game of Life was invented by John Conway (as you might have gathered).
The game is played on a field of cells, each of which has eight neighbors (adjacent cells).
A cell is either occupied (by an organism) or not.
The rules for deriving a generation from the previous one are these:

Survival
--------
If an occupied cell has 2 or 3 neighbors, the organism survives to the next generation.

Death
-----
If an occupied cell has 0, 1, 4, 5, 6, 7, or 8 occupied neighbors, the organism dies
(0, 1: of loneliness; 4 thru 8: of overcrowding).

Birth
-----
If an unoccupied cell has 3 occupied neighbors, it becomes occupied.

Version data entries

60 entries across 60 versions & 11 rubygems

Version Path
dchelimsky-rspec-1.1.10 examples/stories/game-of-life/README.txt
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/examples/stories/game-of-life/README.txt
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/examples/stories/game-of-life/README.txt
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/examples/stories/game-of-life/README.txt
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/examples/stories/game-of-life/README.txt
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt
deckshuffler-0.0.2 vendor/plugins/rspec/examples/story/game-of-life/README.txt
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.0 rails_plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.1 rails_plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.3 rails_plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.4 rails_plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.2 rails_plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.5 rails_plugins/rspec/examples/stories/game-of-life/README.txt
picolena-0.1.6 rails_plugins/rspec/examples/stories/game-of-life/README.txt