请问: 
9 t7 J9 i. `2 k" ^% t随机产生的turtle 已经在patch的坐标上上下左右一格格运动,当turtle碰到一个随即分布的patch以一定概率粘合,patch变色,其他turtle经过也还是以一定概率粘合的,粘合后turtle的能量就会转变到patch上,并且以一定速率消耗它,怎么编写这个过程?下面是我编写的,运行时就出错了。怎么改正呢?# \+ X. o6 e3 S 
! Q9 @% v3 v+ Q! K 
  
7 b( r. R0 r0 Y, s5 Jturtles-own [ energy ]* c7 v- Z& j6 h8 M! {/ Q0 S% N6 M 
to setup 
+ B; X) M% c% Lclear-all 
- L1 h: V3 I) Z; K" L& [! L9 G: F* ]set-default-shape turtles "square" 
. I8 @  v. Y# _crt nutrition9 [% ^, F# l  C6 j! H4 h, T/ b 
ask turtles[  H0 j: q$ N- t- ?8 ?/ i% W+ K 
    set color white/ Y) [2 q6 }: x1 s 
    setxy random-pxcor random-pycor] 
8 S) B" B' u6 L% |6 T   
( o% H# e  E7 P$ @ask n-of microbes-initialization patches 
% J! X* D  ]2 L4 P  x" n; {    [ set pcolor green] 
3 I& O: f0 g0 D6 x' t' m ask turtles [set energy  1] 
' Y1 s6 j- A8 J/ d4 H5 W$ A! wend 
& ]1 G3 I; W1 b# G4 P/ A9 J, B$ N" s2 A' q  c1 g4 f  @6 R 
to go, l' Q7 k; t8 B* z  C 
    ask turtles [set heading 90 * random 4    fd 1]& x- @* E5 o# ~1 E3 m/ S 
     ask patches  with [ any? turtles-here]3 d/ @5 c! C4 w; ]: v4 {& v 
    [  if pcolor = green and random 100 < chance-of-congregating [tt ]] 
9 f9 K1 x5 X) x: T     ask turtles [ if energy = 0  [die ]] 
$ x1 C7 A/ I3 W) C5 q end- q! h/ E9 _0 R' E) E& z8 X 
 
( c  Y! H" f2 a4 h; D$ Tto tt9 m' D: _2 L9 h 
ask patches [set pcolor gray ] 
, f  S, s# K9 bask  turtles [set energy energy - 1]5 S$ S+ i8 \" B; R' x6 D+ l& `' } 
end 
* l9 ~; b- C! w. F% M* v( R" T4 m# h1 K0 p1 a& ?; [4 ~ 
 |