I need to set 10 turtles in two horizontal/parallel rows. My code so far is:
set xcor -4 + random 8
set ycor one-of [-2 2]
Also want to avoid two turtles on same patch. So inserted:
move-to one-of patches with [not any? turtles-here]
But the above command blows up the row structure. How can I alter/replace this command so the turtle stays on the ycor but moves on the xcor if it encounters another turtle on the same patch?
Thanks, RB
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/b5e9a3f4-4219-4d1b-86c2-2bbd3db4cd30n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/ae6ef71c-af9a-4720-9001-3c1a533faa0en%40googlegroups.com.
--