Here we are. The game we all play.
As we got the list of tasks we can work on, Game of Life trapped me.
They say that these things:
follow very simple rules. And very few rules. Like, be equidistant from two birds of your choice. And it makes pretty life
. . .
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
run with
ruby run_life.rb
if you want to add size, density & game_len, you can add those in your call:
ruby run_life.rb 40 10 200
Like a percentage. 10ish and a bit less seems to work best
They go round the other side.
Done while @Makers Academy.