/[gnugo]/gnugo/engine/semeai.c
ViewVC logotype

Diff of /gnugo/engine/semeai.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by bump, Sun Dec 16 02:10:58 2001 UTC revision 1.29 by bump, Mon Dec 24 00:53:30 2001 UTC
# Line 168  new_semeai(int color) Line 168  new_semeai(int color)
168              || DRAGON2(bpos).safety == INESSENTIAL)              || DRAGON2(bpos).safety == INESSENTIAL)
169            continue;            continue;
170                    
171            /* A dragon consisting of a single worm which is tactically dead or
172             * critical and having just one neighbor should be ignored.
173             */
174            if (dragon[apos].size == worm[apos].size
175                && worm[apos].attack_codes[0] == WIN
176                && DRAGON2(apos).hostile_neighbors == 1)
177              continue;
178            if (dragon[bpos].size == worm[bpos].size
179                && worm[bpos].attack_codes[0] == WIN
180                && DRAGON2(bpos).hostile_neighbors == 1)
181              continue;
182    
183            /* If one dragon consist of a single stone, don't treat it
184             * as a semeai. (But see nicklas1:1405 for an example where
185             * this rule is bad.
186             */
187    
188            if (dragon[apos].size == 1 || dragon[bpos].size == 1)
189              continue;
190    
191          semeai_found = 1;          semeai_found = 1;
192          a_best_status = UNKNOWN;          a_best_status = UNKNOWN;
193          b_best_status = UNKNOWN;          b_best_status = UNKNOWN;

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26