也许我说错了这个问题,但我想在代码中做的是当另一只乌龟遇到另一只乌龟时,他们互相创建链接 我知道它的
to go
tick
make-circle
move
if ticks >= timer1 [stop]
end
to move
ask turtles
[
create-links-with other turtles ;here is where i want to put the code
set heading random 360 fd 1]
create-network
end
to create-network
ask links [
set thickness 0.01 * counter
if [patch-here] of end1 = [patch-here] of end2
[set counter (counter + 1)]
]
end
但我不确定当他们遇到我怎么做时,如何正确地说出来链接