https://github.com/jonmagic/conways
Conway's Game of Life
https://github.com/jonmagic/conways
Last synced: 3 months ago
JSON representation
Conway's Game of Life
- Host: GitHub
- URL: https://github.com/jonmagic/conways
- Owner: jonmagic
- License: mit
- Created: 2014-04-20T19:51:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-20T19:57:32.000Z (about 11 years ago)
- Last Synced: 2025-01-31T13:43:47.372Z (5 months ago)
- Language: Ruby
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Conway's Game of Life
> The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.[1]
> The "game" is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves.

From http://en.wikipedia.org/wiki/Conway's_game_of_life
## The Rules
1. Any live cell with fewer than two live neighbours dies, as if caused by under-population.
1. Any live cell with two or three live neighbours lives on to the next generation.
1. Any live cell with more than three live neighbours dies, as if by overcrowding.
1. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
## Run
```
ruby run.rb
```