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

Diff of /gnugo/engine/score.c

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

revision 1.25 by gf, Tue May 25 03:13:46 2004 UTC revision 1.26 by bump, Thu May 27 16:51:34 2004 UTC
# Line 69  dilate_erode(int dilations, int erosions Line 69  dilate_erode(int dilations, int erosions
69        continue;        continue;
70    
71      if (board[ii] && dragon[ii].status == CRITICAL      if (board[ii] && dragon[ii].status == CRITICAL
72          && DRAGON2(ii).safety != INESSENTIAL)          && DRAGON2(ii).safety != INESSENTIAL) {
73        critical_found = 1;        critical_found = 1;
74          DEBUG(DEBUG_SCORING, "critical dragon found at %1m\n", ii);
75        }
76      if (board[ii] == WHITE && !captured_territory(ii, color))      if (board[ii] == WHITE && !captured_territory(ii, color))
77        gb[ii] = 128;        gb[ii] = 128;
78      else if (board[ii] == BLACK && !captured_territory(ii, color))            else if (board[ii] == BLACK && !captured_territory(ii, color))      
# Line 550  captured_territory(int pos, int color) Line 552  captured_territory(int pos, int color)
552    for (d = 0; d < DRAGON2(pos).neighbors; d++)    for (d = 0; d < DRAGON2(pos).neighbors; d++)
553      if (DRAGON(DRAGON2(pos).adjacent[d]).color == OTHER_COLOR(board[pos])      if (DRAGON(DRAGON2(pos).adjacent[d]).color == OTHER_COLOR(board[pos])
554          && (DRAGON(DRAGON2(pos).adjacent[d]).status == ALIVE          && (DRAGON(DRAGON2(pos).adjacent[d]).status == ALIVE
555          || (board[pos] != color              || (DRAGON(DRAGON2(pos).adjacent[d]).status == UNKNOWN &&
556              && DRAGON(DRAGON2(pos).adjacent[d]).status == CRITICAL)))                  dragon2[DRAGON2(pos).adjacent[d]].weakness < .1)
557                || (board[pos] != color
558                    && DRAGON(DRAGON2(pos).adjacent[d]).status == CRITICAL)))
559        return 1;        return 1;
   
560    return 0;    return 0;
561  }  }
562    

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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