NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 References
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Japanese

  Donate

NetLogo User Community Models

(back to the NetLogo User Community Models)

Tag

by Talaya White (Submitted: 06/27/2009)

[screen shot]

Download Tag
If clicking does not initiate a download, try right clicking or control clicking and choosing "Save" or "Download".

(You can also run this model in your browser, but we don't recommend it; details here.)

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.

(back to the NetLogo User Community Models)