Courses‎ > ‎Intro to CS - Full Year‎ > ‎Fall‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 23: 1/6

posted Jan 6, 2020, 11:26 AM by JonAlf Dyrland-Weaver   [ updated Jan 7, 2020, 11:02 AM ]
  • Here is a NetLogo model that you will recreate:
    • In it, humans and zombies exist. 
    • The humans are trying to reach safety, represented by the red patches.
    • The zombies are trying to eat the humans.
    • The humans all start on the brown patches.
    • The zombies all start on the black patches.
    • The zombies can detect if there are nearby humans, and move in their direction.
    • If a zombie is within a patch of a human, it eats the human.
    • Even though humans move in the direction of red patches, and zombies move in the direction of a nearby human, all turtles also have a randomness to their movement.
    • The world is standard sized, but wrapping is shut off.
  • The following new NetLogo commands are used:
  1. Create a working version of this model.
  2. If you finished that, add some modifications. Here are some ideas:
    1. Zombies die when they hit the safe zone.
    2. Humans try to avoid nearby zombies.
    3. All turtles have a health property, it decreases each time they move. If health is 0, they die.
      1. Zombies gain health by eating humans.
    4. Anything you'd like to add...
This will be due on Wednesday, 1/8
Submit this as zombies