/game_of_life

Conway's Game of Life

Primary LanguageRubyGNU Affero General Public License v3.0AGPL-3.0

game_of_life

Conway's Game of Life, in Ruby.

Game of Life GIF

Installation

bundle install

ruby2d installation might fail if the SDL2 library hasn't been installed. See here

Run the Game

bundle exec rake

Options

Usage: rake [options]
    -w, --width [WIDTH]              Width of the game board
        --height [HEIGHT]            Height of the game board
    -m, --mode [MODE]                Rendering mode, console by default
                                     console, gui
    -h, --help                       Help

Example

bundle exec rake -- --width=64 --height=48 --mode=gui

Caveats

gui mode requires ruby2d to be installed. Check it out here.

Run the Specs

bundle exec rake spec