Reputation: 63
So in this project a obstacle is created with:
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 ]
Now I want to distribute my patches around the obstacle, but I can't figure out how to place them anywhere but on the obstacle. So I'm looking for something like (but this gives a syntax error):
move-to one-of patches with [ patch not obstacle and not any? turtles-here ]
Upvotes: 1
Views: 49
Reputation: 17678
try this move-to one-of patches with [ not member? self obstacle and not any? turtles-here ]
. You are already telling NetLogo you want to test the patches
by specifying patches with
, you don't need to repeat that for the obstacle test.
Upvotes: 2