Skip to content

zhukovpe/gameoflife

Repository files navigation

Gameoflife

Conway's Game of Life

wiki links: en ru

Installation

Build:

$ gem build gameoflife.gemspec

and install:

$ gem install ./gameoflife-0.1.3.gem

Usage

Create simple csv file which contains coordinates. First row consider to contain field size (width, height). Each row after first consider to contain coordinates (x,y) of one live cell. Coordinates begins from 0 value, for example top left corner cell has x = 0, y = 0. Application produces console output for the each step. Pause between steps is about 2 seconds.

'X' - stands for live cell '_' - stands for dead cell

irb> require 'gameoflife'

irb> include Gameoflife

irb> init("filename")

irb> play

Contributing

  1. Fork it ( https://github.com/[my-github-username]/gameoflife/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Conway's Game of Life

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published