Code: https://github.com/kevivmatrix/game_of_life, https://github.com/sagivo/algorithms/blob/master/src/game_of_life.rb.

Select cells that you want to be alive in beginning of the game and watch them die/get alive based on Game of Life rules.
More about Game of life - Wikipedia Article about Conway's Game of Life
If all your cells die or if you are left with less number of cells, you loose!