Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # Bears, River, Fish
  2.  
  3. We are going to build a small ecosystem! We want to create an ecosystem made up of 3 parts: bears, river and fish. You will need a class for each of these. From this you can make instances and build your ecosystem.
  4.  
  5. ## How our ecosystem works
  6.  
  7. - A river should have a name e.g. "Amazon"
  8. - A river should hold many fish
  9. - A fish should have a name
  10.  
  11. - A bear should have a name e.g. "Yogi"
  12. - A bear should have an empty stomach ( maybe an array )
  13.  
  14. - A bear should be able to take a fish from the river
  15. - A river should lose a fish when a bear takes a fish
  16.  
  17. ## Extensions
  18.  
  19. - A bear could have a roar method
  20. - A bear could have a food_count method
  21. - A river could have a fish_count method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement