one-of-turtles-at-with
xcor ycor [condition]
Parameters:
xcor |
Number |
number of steps in the x-direction from the caller |
ycor |
Number |
number of steps in the y-direction from the caller |
[condition] |
List of commands |
list of commands that returns true or false |
Description:
Returns a random turtle that satisfies [condition] that is on the patch xcor units away in the x direction and ycor units away in the y direction
Examples:
one-of-turtles-at-with 1 1 [color = red]
returns a red turtle that is one unit away in the x direction and 1 unit away in the y diretion
Related Commands:
one-of-breed-at-with
one-of-turtles-at
one-of-turtles-here-with
one-of-turtles-towards-with