John Conway's Game of Life implemented in Ruby with the Gosu game library
Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit 36ef6e7 Nov 19, 2016

README.md

NanoLife

John Conway's Game of Life implemented in Ruby with Gosu.

Quick Start

Using Gem

$ gem install nanolife
$ nanolife

Including in Source Code

$ irb
>>> require 'NanoLife'
>>> game = LifeGameWindow.new
>>> game.show

Keybinds

  • 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.

Screenshots

Screenshot of main window

Troubleshooting

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.

Website

Source Code

Ruby Gem

Contact

License

MIT. See LICENSE.txt.

Changelog

  • v1.0 - 2016/11/19 - Releasing as gem on GitHub
  • v0.1 - 2014/07/30 - Initial implementation