count-turtles-towards-with
angle distance [condition]
Parameters:
angle |
Number |
angle from caller |
distance |
Number |
distance from caller |
[condition] |
List of turtle commands |
list of commands that returns true or false |
Description:
Returns the number of turtles that are distance units away at an angle of angle from the caller, that also satisfy [condition].
Examples:
if count-turtles-towards 0 1 [color = blue] > 1
[fd 1]
will have all of the turtles with more than one blue turtle directly in front of them move forwards one space.