|
|

楼主 |
发表于 2008-5-28 11:44:37
|
显示全部楼层
好的,谢谢了6 ~" @9 R# P& G4 h9 d
; X7 F7 F2 \+ l6 J
问题找到了,
7 _) C2 f, E: I5 W1 m" b
' C S: c7 t; U
) O1 J4 O0 [2 E) q9 t7 k在 To clear 中遗失了一句 . v% B, G- {( b; e+ D8 u) b
' ]; H/ x, f% o9 m- w, ], |. D [ ask neighbors with [any? grass-squares-here]8 e* g( U3 N9 p/ U, w" V
% K8 w; B9 g& v$ @& R @
- @7 ]3 {. H" h3 `) j0 Y* |2 ]5 ^: p, p+ v2 F4 p/ f# S* C
) A2 l) n8 F2 v+ [, Z6 ~8 Vto clear8 _" r4 I Z: H: i: U8 H
; [$ {- \# ~5 Sask grass-squares-here [die]9 ^. ~( \5 ^* }; h' x# W
3 x& z! E' `$ m2 O
ask markers-here [die]' l4 `- O7 e |
) ]# t F ]$ y1 f: _- z. Z
let total count neighbors with [any? mines-here]) ^- k) ^; t; R
8 p4 [9 a7 R' U$ t0 o
ifelse total > 02 V3 U- ~5 i5 `5 r& \
: j/ h' w+ B! n0 e8 C5 Z" k( m& W[set plabel total]+ a3 V& j& n# h- h0 c4 N" U1 d1 k6 y
4 n3 H$ g; S5 S& h. T
[ ask neighbors with [any? grass-squares-here]1 I; \" _" } J- b- [0 h# [' h
5 o$ ^5 S- Z' H- B1 N- D; E: R/ j, r7 z
[clear]& S* W6 \, u3 b
" y( }$ {3 h& L+ I- jend |
|