Netlogo当他们都遇到同一个补丁时,用乌龟创建一个链接

时间:2017-11-28 22:36:01

标签: netlogo

也许我说错了这个问题,但我想在代码中做的是当另一只乌龟遇到另一只乌龟时,他们互相创建链接 我知道它的

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

但我不确定当他们遇到我怎么做时,如何正确地说出来链接

0 个答案:

没有答案