In the version below the sheep and wolves were able to cross the water putin place to stop them going to certain places and over the edge of the area. Because of thesettings on what to do to avoid the blue the sheep and wolves would go back 3and turn 180 degrees, but if they were in a corner they would end up jumping backinto blue areas and so would become trapped in a corner until they either wentstraight through the blue and came out the other side, they ran out of energyand died. This problem was solved by making the sheep and wolves move only .1every tick instead of 1, and when they hit the blue to only go back .4 and toturn 150 + random 40 so that they didn’t always turn in the same direction andhad a chance of escaping corners. http://m4a-gae-hrd.appspot.com/m/?frozen=YFXQ4KPOV_nCVi30CPDx7e&MforAllModel=1 I merged two models, a model of an epidemic spreading through a social networkand a model of a predator, prey relationship. The predators were wolves and theprey were sheep the sheep could be infected by a disease that makes them easierto catch. To make this possible I had to take some of the micro behaviors(susceptible, log infection) out of the person prototype from the epidemicmodel and put them into the sheep prototype from the predator prey model. Theprototypes from the epidemic model I had to add from the epidemic model werethe observer, parameters, to do when infected and support. The micro behaviorplane geometry caused some problems because it made the sheep and wolves goinvisible if they accidently went off the edge of the world because it changedthe original setting that they just come back on the other side. There wasanother problem, that none of the sheep are able to recover from the infectionand so have it for their entire lives. To make the infection have an effect, so I had it make the infected sheepeasier for the wolves to catch with chances of it being caught controlled by aslider. So that the different effect of different odds can be seen. Things i found confusing Finding where the micro-behaviors were originally The energy attribute and how to make it go down and how to edit otherattributes Setting the life expectancy, not in the same place as setting death ratesor finding how to set life expectancy at all https://m4a-gae.appspot.com/m/?frozen=LBpO805X7AT4lu7gmbN46e&MforAllModel=1 https://m4a-gae.appspot.com/m/?frozen=OxYLVegykluBg4VyOLOI6_&MforAllModel=1 https://m4a-gae.appspot.com/m/?frozen=lYEfuu6lChUpk_y-tSzM5c&MforAllModel=1 https://m4a-gae.appspot.com/m/?frozen=cyzUxeSOl3v6XsIvaG_k49&MforAllModel=1 New version The graph was only in black on the Spanish flu pandemic when it says thatall the line should be different colors http://m4a-gae-hrd.appspot.com/m/?frozen=XhkfiKhMzWia2z0vyOnz56&MforAllModel=1  http://m4a-gae-hrd.appspot.com/m/?frozen=gikoLK8kBsAKFQFAjPN84d&MforAll http://m4a-gae-hrd.appspot.com/m/?frozen=iKDxzKziitp1OQfycwaz6e&MforAllModel=1Model=1 Sheep and wolves go invisible if they accidentally cross off the edge ofthe world and come back on again  |
Misc‎ > ‎Student projects‎ > ‎