user3780602
user3780602

Reputation: 35

how to create a list of neighbors to verify if occupied or not by other turtles

i wont to know what neighbors are occupied from other turtles, in general terms i wont to know what patches are occupied in-radius from the turtles patch. Better if i can create a list of them or similar to verify what of this are occupied or no. Some suggestion? thanks

Upvotes: 0

Views: 260

Answers (1)

Bryan Head
Bryan Head

Reputation: 12580

For the 8 neighboring patches: neighbors with [ any? turtles-here ]

For patches in a radius: patches in-radius x with [ any? turtles-here ]

Upvotes: 1

Related Questions