|
楼主 |
发表于 2008-5-28 11:44:37
|
显示全部楼层
好的,谢谢了: a/ \, W7 ^* A( j- W' T( `
8 k# ]% K+ r* F* J# M! w, a% \& ^8 L- _问题找到了,
) r1 a: ?. r6 [; N! j
; v- P0 z& N# @" s* i$ `
6 u7 v, L4 S) D; a+ |在 To clear 中遗失了一句
4 t' |+ y9 u: f, U# n0 }) H+ M( ]/ N
[ ask neighbors with [any? grass-squares-here]/ _& b+ M( f" \" {* c
; G F4 [6 p( C9 d' n
2 M$ J4 F2 M! h8 n c) d
7 S. m P5 d, L3 T. o) ]( Q, k! A6 A1 I( }. _
to clear
2 H0 m( C0 `5 i2 x7 m. v- M6 b: b, A: m- ]) } S! F
ask grass-squares-here [die]
6 r, w/ y% f3 g U/ I& |6 c8 L
ask markers-here [die]; X2 o2 R% {; L- S
; z7 H O1 D- }4 tlet total count neighbors with [any? mines-here]% q7 \! \+ E n0 v
; @+ n1 c. D( x+ q& Gifelse total > 06 j0 S' a, M* d4 a$ b
* E9 S* g" g" e
[set plabel total]9 f; q7 U4 I& D# r# X6 n+ T. {( @
9 U% Z( w6 }/ f! v- y8 v1 e [ ask neighbors with [any? grass-squares-here]
4 X0 G: b1 s9 [; g7 ~9 A, v O' `! r% \5 o
/ @0 p+ c4 U1 Y3 s) e3 G' b! D0 A
[clear]+ }" S- v2 _: X6 x
& V! |3 j/ j0 C/ ^
end |
|