|
|
发表于 2009-9-10 15:35:03
|
显示全部楼层
这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy, g. S( T+ K9 j- f, L6 A% f
if dummy < (item j [distance-from-other-turtles] of node3)
% h, [7 ]9 a/ D. n/ y [6 E0 \$ ~% U+ m, E/ s& }8 c& y
ask node3 [, }0 h' N/ b0 ~* P, C
set distance-from-other-turtles replace-item j distance-from-other-turtles dummy% D" y* m2 u$ i/ g
]
, O+ l9 P) J) I) f! T q4 H | ] |
|