Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ralexstokes/ruby-life
Conway's Game of Life, in Ruby
https://github.com/ralexstokes/ruby-life
Last synced: 20 days ago
JSON representation
Conway's Game of Life, in Ruby
- Host: GitHub
- URL: https://github.com/ralexstokes/ruby-life
- Owner: ralexstokes
- Created: 2014-01-11T07:02:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-04T02:44:45.000Z (almost 11 years ago)
- Last Synced: 2024-10-07T16:41:44.527Z (about 1 month ago)
- Language: Ruby
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Conway's Game of Life, in Ruby
### Usage
gem install ruby-life
ruby run.rb $INPUT_FILEwhere `run.rb` is an example game in `lib/` and `$INPUT_FILE` is a JSON file with a group of rows.
Each row is an array of strings {'dead', 'alive'} that is used to
populate the program's representation of the game.For more information on the game itself, see here:
[http://en.wikipedia.org/wiki/Conway's_Game_of_Life](http://en.wikipedia.org/wiki/Conway's_Game_of_Life)Written with inspiration from [http://rubyquiz.strd6.com/quizzes/193-game-of-life](http://rubyquiz.strd6.com/quizzes/193-game-of-life)
### Todo
Add quantum states to Cell model. Cell.status = a|alive> + b|dead>. Extend to [quantum cellular automata](http://en.wikipedia.org/wiki/Quantum_cellular_automata)### Questions, comments?
@ralexstokes on Twitter