NetLogo User Community Models(back to the NetLogo User Community Models)
|
Download If clicking does not initiate a download, try right clicking or control clicking and choosing "Save" or "Download".
Try It in NetLogo Web
|
DESCRIPTION:
One player is "It". It chases other players, trying to Tag them. When It Tags another player, the tagged player becomes It.
RULES:
(It) 1. Chase after the nearest player to you. 2. When you tag someone, become NOT IT. 3. Try to avoid other Its. 4. As soon as you are NOT IT, run back to the middle.
(Not It) 1. Wander around semi-randomly. 2. Try to avoid being Caught. 3. Try to avoid running into other players. 4. Return to a central point. 5. When you are Caught, become IT.
NOTES
¥ Its can sometimes move faster than players, because they do not deviate from their path to go back to the center. Only when they are too close to another It will they deviate from following their Chasee, and that adds another step. ¥ Its cannot move away from other its who they are at 0 distance from. When they are allowed to do so, they attempt to turn towards a position not differentiated from their own and it comes up with an error. ¥ Its avoiding its is only called for when there are other Its in the world. ¥ Players only move towards the center or away from eachother when there are no Its nearby.
|