My solution for Gojek's Game of Life coding challenge at Ruby Conf India
Clone this github repo
[email protected]:nisanth074/gojek-rci-challenge.git
Install the required gems with bundler
cd gojek-rci-challenge/
bundle install --path vendor/bundle
and then run
./game_of_life.rb seed.text
The script should output something like
% ./game_of_life.rb seed.txt
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0
Specs are written in rspec
bundle exec rspec spec/
Most of these TODOs are artificial conditions required by the Gojek challenge
- Remove if conditionals
- Stop mutating variables
- Remove loops
- Add Travis CI