John Conway's Game of Life implemented in Ruby with Gosu.
$ gem install nanolife $ nanolife
Including in Source Code
$ irb >>> require 'NanoLife' >>> game = LifeGameWindow.new >>> game.show
- s - Start and stop (pause) the game
- c - Clear the grid
- r - Randomize the grid
- Left Click - Invert the state of the cell clicked
- q/Esc - Quit
Variables can be configured at the top of the program as constants.
Gosu gem dependency will require native build tools. In Windows that means having the Ruby DevKit and in Linux installing build-essential, libsdl2-dev, libsdl-ttf-dev, libopenal-dev, libpango1.0-dev, libsndfile-dev, and ruby-dev packages.
MIT. See LICENSE.txt.
- v1.0 - 2016/11/19 - Releasing as gem on GitHub
- v0.1 - 2014/07/30 - Initial implementation