|
楼主 |
发表于 2008-5-28 11:44:37
|
显示全部楼层
好的,谢谢了
; _" N& Q4 x- C4 H1 E) f
" d5 b# `, n( f6 N- r问题找到了, % N' E6 I/ D& k7 v, V
5 O# l+ w2 T- I+ G% x: |
2 }) w, C* R6 z8 U0 c/ p9 H4 H5 f/ R在 To clear 中遗失了一句 ) ^1 @0 X. V' h0 z
, E( ]) B& @- S% |8 h M
[ ask neighbors with [any? grass-squares-here]0 n/ u6 ]6 O9 @
- J# A2 g% K7 _
% I* m: w/ w3 m
0 U, r0 t( s- {+ W+ ?0 g2 d" l0 k5 c) [) B3 t2 n
to clear, t3 T) t' N8 D
# D. R) R3 R, h- _0 x. H& N$ M, `
ask grass-squares-here [die]
% U3 ]8 b$ N: A" q3 q+ P: { e H( W; \* u3 T) C; y6 ?0 m
ask markers-here [die]: \* c. b" o6 r6 ~
" G4 y" c" n$ {% F6 x3 Q' J
let total count neighbors with [any? mines-here]
; B( h6 G; W# S4 n: [1 ^& \% o8 A/ G7 ~- g, y& t
ifelse total > 0) K5 X5 [" a/ ?; }* G& p
4 l# C! w8 ?, i[set plabel total]$ y7 P6 P o5 k7 F+ U
1 S; y2 T' S# o3 n [ ask neighbors with [any? grass-squares-here]
% o' X Y1 V9 m. T2 V6 J9 t; O" r2 v- l2 f( q
- i6 \0 W2 x. r& L[clear]; J) p' g" O5 B1 Q3 t* ^
4 |9 c5 _0 O% f7 \9 i) Wend |
|