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

不打扰是莪最后的温柔 提交于 2019-12-25 07:12:22

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!