Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonmagic/conways
Conway's Game of Life
https://github.com/jonmagic/conways
Last synced: 30 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-20T19:57:32.000Z (over 10 years ago)
- Last Synced: 2023-04-10T22:39:32.815Z (over 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 1
- 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.
![glider](http://cl.ly/image/1W3T0K3G3e2J/glider.gif)
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.![glider and blinker collision](http://cl.ly/image/3k331R16310G/collision.gif)
## Run
```
ruby run.rb
```