Skip to content

davidmatas/Episode1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Episode 1 - Lions, Pandas and Zookeepers

An accurate simulation of zookeepers feeding Lions and Pandas

Panda Level

  1. Create a human that likes bacon and tacos, but not bamboo
  2. (Using TDD [write tests first])

Tiger Level

  1. Create a FoodBarge that can be called like:
  2. Test that when the zookeepers gets food for the panda, the panda will eat it
food = foodbarge.food_for(panda)
panda.feed(food)

Eagle Level

  1. Extract Food into a class, rather than a symbol
  2. Create separate Tacos, Wildebeests, etc classes for each food
  3. Rather than comparing Tacos.new, implement the == method so you can do Tacos.new == Tacos.new

Copyright: Jesse Wolgamott, MIT License (See LICENSE)

About

Course Launching Soon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%