lib/game_of_life/cell.rb
# change @alive state based on rules
change @alive state based on rules
change @alive state based on rules
def next!
      if alive?
        die! if (neighbours < 2) || (neighbours > 3)
        relive! if (neighbours == 2) || (neighbours == 3)
      else
        relive! if neighbours > 3
      end
    end
def next! if alive? die! if ( neighbours < 2 ) || ( neighbours > 3 ) relive! if ( neighbours == 2 ) || ( neighbours == 3 ) else relive! if neighbours > 3 end end
change @alive state based on rules
change @alive state based on rules