Skip to content

tazsingh/ruby_game_of_life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Conway's Game of Life in Ruby

Using no conditionals and on a torus.

Implemented at the Mississauga Code Retreat on June 9th, 2012 during a 45 minute session.

Usage

Spin up irb from the project's directory then:

require "./board"

b = Board.new 50, 50

# Use b.next_generation to calculate the next generation
b.next_generation

# Use b.pretty_print to display the current generation
b.pretty_print

# Use b.pretty_print_next_generation (or b.ppng for short) to calculate the next generation then pretty print it
b.ppng

TODO

A better way of displaying the cells. Possibly ncurses.

About

Conway's Game of Life with no conditionals on a torus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages