Ticket #145: filllib.c.patch

File filllib.c.patch, 1.0 kB (added by draqo, 2 years ago)
  • gnugo/engine/filllib.c

    RCS file: /sources/gnugo/gnugo/engine/filllib.c,v
    retrieving revision 1.37
    diff -u -r1.37 filllib.c
     
    118118   * the process. 
    119119   */ 
    120120  memset(potential_color, 0, sizeof(potential_color)); 
    121   for (pos = BOARDMIN; pos < BOARDMAX; pos++) { 
     121  scan_board(pos, 
    122122    if (!IS_STONE(board[pos])) 
    123123      continue; 
    124124 
     
    146146          potential_color[pos + d] |= board[pos]; 
    147147      } 
    148148    } 
    149   } 
     149  ) 
    150150   
    151151   
    152   for (pos = BOARDMIN; pos < BOARDMAX; pos++) { 
     152  scan_board(pos, 
    153153    /* It seems we can't trust an empty liberty to be gray-colored 
    154154     * either as a cave or as a cavity. Instead we look for empty 
    155155     * intersections with at least one neighbor of each color, where 
     
    330330        } 
    331331      } 
    332332    } 
    333   } 
     333  ) 
    334334   
    335335  /* Nothing found. */ 
    336336  DEBUG(DEBUG_FILLLIB, "Filllib: No move found.\n");