makersacademy / learn_to_program

For submitting exercises from the Chris Pine Learn to Program Book
11 stars 400 forks source link

ch13 orange_tree solution (how_you_and_i_could_do_it.rb) #402

Closed jonnymoore12 closed 8 years ago

jonnymoore12 commented 8 years ago

We are instructed to "have the tree die after 25 years", so counting the age of our tree from 0, it should die as soon as @age = 25, right?

The solution provided sets @alive = false only when @age > 25, but it should be when @age >= 25, right?