Turtle and Observer Command

count-turtles-towards angle distance

Returns the number of turtles distance away at angle angle from the caller. Note the angle is measured from the direction the caller is facing.

Examples:

count-turtles-towards 0 1 returns the number of turtles one patch directly in front of the caller.

Related commands:
count-turtles-here count-turtles-at count-turtles