Netlogo 分发我的海龟们的补丁,除了那些属于一组的补丁

Netlogo 分发我的海龟们的补丁,除了那些属于一组的补丁,netlogo,patch,Netlogo,Patch,因此,在本项目中,通过以下方式创建障碍: set obstacle patches with [ abs(pxcor) < 15 and abs(pycor) < 15 ] crt 1 [ set size 30 set shape "square" set color gray set heading 0 ] 尝试此移动到一个带有[非成员?自身障碍物且此处没有任何海龟]的补丁中。。您已经告诉NetLogo您想通过指定带有的补丁来测试补丁,您不需要在障碍物测试中重复该操作。

因此,在本项目中,通过以下方式创建障碍:

  set obstacle patches with [ abs(pxcor) < 15 and abs(pycor) < 15 ]
  crt 1 [ set size 30 set shape "square" set color gray set heading 0 ]

尝试此
移动到一个带有[非成员?自身障碍物且此处没有任何海龟]的补丁中。
。您已经告诉NetLogo您想通过指定带有的补丁来测试
补丁
,您不需要在障碍物测试中重复该操作。

不幸的是,这会导致:“不希望输入为真/假,但得到了代理集(代理集,841个补丁)。”,我误解了您是如何创建障碍的-我原以为它是一个补丁属性,但实际上它是一个补丁集。编辑了我的答案。
 move-to one-of patches with [ patch not obstacle and not any? turtles-here ]