问题
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
回答1:
For the 8 neighboring patches: neighbors with [ any? turtles-here ]
For patches in a radius: patches in-radius x with [ any? turtles-here ]
来源:https://stackoverflow.com/questions/24516240/how-to-create-a-list-of-neighbors-to-verify-if-occupied-or-not-by-other-turtles