6. Name : string
Version : numeric
Time : time
Continents : array
Creatures : hash
Try double quoted strings, it is fun
Try using symbols
Use methods to capitalize keys
7. Check classes for existing variables
Add methods to objects
Add methods to existing classes
Create classes(world, human, animal, insect)
Initialize
attr_accessor
class
Name
…code goes here…
end
8. If … end
If … else
If … elsif … else … end
Check for day/night in world
Unless
Case … when … else … end
Check for meal times in world
While … end
Until … end
For x in arr … end
Feed humans with animals