Ticket #127: reading-fourlib.diff

File reading-fourlib.diff, 0.9 kB (added by alain, 2 years ago)

Probable bugfix: elsewhere the test are similar, stackp <= fourlib_depth , or fourlib_depth < stackp

  • engine/reading.c

    old new  
    12721272{ 
    12731273  int color = board[str]; 
    12741274  int j, k, l; 
    1275   int goal_liberties = (stackp < fourlib_depth ? 5 : 4); 
     1275  int goal_liberties = (stackp <= fourlib_depth ? 5 : 4); 
    12761276  int adj, adjs[MAXCHAIN]; 
    12771277 
    12781278  /* We would like to initialize liberty_mark to -1, but some 
     
    13991399 * If the reading ply (stackp) is deeper than the deep-reading cutoff 
    14001400 * parameter depth, whose default value DEPTH is defined in gnugo.h, then a 
    14011401 * string is assumed alive if it can get 3 liberties. When 
    1402  * fourlib_depth < stackp < depth, a string is considered alive if it can get 
    1403  * four liberties. When stackp < fourlib_depth, it is considered alive 
     1402 * fourlib_depth < stackp <= depth, a string is considered alive if it can get 
     1403 * four liberties. When stackp <= fourlib_depth, it is considered alive 
    14041404 * if it can get 5 liberties. 
    14051405 * */ 
    14061406