Play tag in a school yard. You are the gold child. Run from the child that is "it". When "it" touches you, you are it: then you must touch another child. A child that was it a moment ago cannot be tagged back.
One child is it. Be free when the bell rings after 90 seconds.
Use the arrow keys or W, A, S and D to move. Hold Shift to run: running uses stamina, and the stamina comes back when you walk or stand.
Each child is a gen_boid process with its role as its state: runner, it, or frozen. When "it" touches a runner, it casts {tagged, Name} to the process of that runner. The runner becomes it, and the old "it" becomes a runner. No process decides who is it.
Each role has its own rules. A runner flees "it" with the rule evade, "it" chases the nearest runner with pursue, and a frozen child has no rules. When the role changes, the child changes its rules.
The data of a child shows its role, if it cannot be tagged now ("no tag back"), and if it is a tired "it". A child that is it for a long time gets slower, and the runners come nearer to it. Then it can tag a runner, and the game does not stop.
The role "it" goes from child to child, and the crowd moves away from it as a wave. You are a child too: your force is a rule of its own, a function that reads your keys. The director counts the time and the score, and makes a child it when no child is it.