12-03-2013

posted Dec 3, 2013, 5:37 AM by Samuel Konstantinovich   [ updated Dec 3, 2013, 5:37 AM ]
Agent Set Commands:

Easy agent set commands:
ask AGENTSET [ commandBlock ]
count AGENTSET

These are commands that give you an agent set of turtles, they are used with other commands like ask or count:
turtles  is the agent set of all turtles. 
turtles-here   is the agent set of all turtles on the same patch as the agent using the command (including itself)

Filtering an agent set. These commands specify which agents in an agent set you are talking about:
one-of AGENTSET 
one-of LIST
 gives you a randomly chosen element of an agent set or list.

with 

max-one-of 
min-one-of 


in-cone 
in-radius

any?  AGENTSET



Comments