For today’s coding it was focused on the deaths of the infected dogs and humans. Within both the tabs the same code was created to allow both the infected dogs and humans to die at approximately the same rate of time. In the picture on the left, the dogs who were specifically colored red (infected) is known as the “ill dog” was given a time frame of 200 to stay alive until it deletes itself (dies). This coding was also applied to the humans but instead of “ill dogs” its “ill humans” who is given the same time frame to delete itself. The variations of numbers may change in the future to either decrease/increase the death time.
Mar. 10–Code review
March 10, 2017 | 1 Comment
March 16, 2017 at 2:28 pm
AOK
that looks good
it might be a little more realistic to have them start dying rapidly at 200 steps rather than just all dropping dead at 200. You can do this by replacing “delete” with
if random 3 = 0 {
delete
}
that will kill them quickly, but not instantly, after 200