Animal Population/Predator and Prey/Disease Model
Project Description
Our project is on the population of a forest. There are three types
of animals: babies, adults, and elderly. Babies have a birth rate. The babies move
randomly on the world. The adults move randomly on the world. The elderly move
randomly on the world. The babies become adults after a certain amount of time.
Adults become elders after a certain amount of time. There are also doctors,
predators, and sick that move randomly. Doctors cure sick animals and they infect
babies, adults, and elderly. Predator hunt and kill adults. All of them also has a
certain amount of time steps before they die.
What we learned from this
What we learned from this was that our values shouldn't for both
the birth rates and the death rates should not be so big or so small. It causes
the graph and model to show giant values which causes the graph from showing the
numerical values. We also learned that the max and min should be in accordance
with what the value is
The Agents Story
-
If you see yourself as a baby, then move randomly on world
-
If you see yourself as a baby, then after 25 time steps, change yourself into an
adult
-
If you see yourself as a baby next to at least 1 sick animal, change yourself into
a sick animal
-
If you see yourself as a baby, then for every time step, increase age by 1
-
If you see yourself as an adult, then move randomly on world
-
If you see yourself as an adult next to at least 1 adult, then you have a percent
chance to make a new baby
-
If you see yourself as a adult, then after 25 time steps, then change yourself
into an elderly
-
If you see yourself as an adult next to at least 1 sick animal, change yourself
into a sick animal
-
If you see yourself as an adult next to at least 1 predator, then erase yourself
-
If you see yourself as an adult, then for every time step, increase age by 1
-
If you see yourself as an elderly, then move randomly on world
-
If you see yourself as an elderly, then after 25 time steps, erase yourself
-
If you see yourself as an elderly next to at least 1 sick animal, change yourself
into a sick animal
-
If you see yourself as an elderly, then for every time step, increase age by 1
-
If you see yourself as a predator, then move randomly on world
-
If you see yourself as a predator next to at least 1 predator, then you have a
percent chance to make a new predator
-
If you see yourself as a predator, then for every time step, increase age by 1
-
If you see yourself as a sick, then move randomly on world
-
If you see yourself as a sick, then erase yourself after 15 steps
-
If you see yourself as a sick next to at least 1 doctor, then there is a percent
chance to change into an adult
-
If you see yourself as a sick, then for every time step, increase age by 1
-
If you see yourself as a doctor, then move randomly on world
-
If you see yourself as a doctor, then after 30 time steps, erase yourself
-
If you see yourself as a doctor, then for every time step, increase age by 1
-
If you see yourself as a hospital, then you have a percent chance to make a new
doctor
Made by: Christopher Parker and William Davis