John Conway's Game of Life implemented in Ruby with the Gosu game library
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
screenshots
.gitignore
LICENSE.txt
README.md
nanolife.gemspec

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