kids-aquarium / aquarium

Unity parts of the project
5 stars 1 forks source link

Population Management #39

Closed sourya-sen closed 6 years ago

sourya-sen commented 6 years ago

Does these things:

  1. Calculates the age of each fish.
  2. Checks the population of fish against a minimum population.
  3. If the population > minimum population, sets the oldest fish to die, if the oldest fish exceeds the minimum age to be alive for.

Things to check and/or fix: Setting an appropriate values for the minimum population and after what age a fish can die.

For sending the fishes off to die, I believe what I have done is slightly naive and probably there's a better way of doing it? Feel free to change, or let me know a better method to implement and I shall get it done.