# GameOfLife The implementation of the [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) ruby CLI gem ## Installation ```bash $ gem install game_of_life ``` ## Usage Check `game-of-life --help` for usage info. ``` game-of-life --version, -v # Prints the Game of Life version information game-of-life help [COMMAND] # Describe available commands or one specific command game-of-life start [OPTIONS] # Start the Game of Life simulations (default command) Options: -s, [--seed=SEED] # Specify the seed number to use as an initial state (default to random). -i, [--input=VALUE] # Specify the path/URL for the file to use as an initial state. (used instead of seed) -w, [--width=WIDTH] # Specify the width of generated universe. (default to terminal width) -h, [--height=HEIGHT] # Specify the hight of generated universe. (default to terminal height) [--dead-cell=CHAR] # Specify the dead-cell representation # Default: [--live-cell=CHAR] # Specify the dead-cell representation # Default: █ -d, [--delay=Milli-Seconds] # Specify the introduced delay between each generation # Default: 50 ``` ## Development - Clone the repo. - Navigate to the ruby CLI implementation `cd game-of-life/CLI/ruby`. - run `bundle install` to install dependencies. - run `bundle rake build` to build the gem/CLI into the `pkg` directory. - run `bundle rake install` to build and install gem/CLI into system gems. ## Linting Run `bundle exec rubocop` ## Testing Run `bundle exec rspec` or `bundle exec rake spec` ## Documentation Run `bundle exec yard` ## Extra information ### [Contributing](../../CONTRIBUTING.md) ### [License](../../LICENSE.md) ### [Code of Conduct](../../CODE_OF_CONDUCT.md)