Ticket #145: sgfdecide.c.patch

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

    RCS file: /sources/gnugo/gnugo/engine/sgfdecide.c,v
    retrieving revision 1.59
    diff -u -r1.59 sgfdecide.c
     
    437437 
    438438  count_variations = 1; 
    439439 
    440   for (pos = BOARDMIN; pos < BOARDMAX; pos++) { 
    441     if (!ON_BOARD(pos) 
    442         || dragon[pos].origin != pos 
     440  scan_board(pos, 
     441    if (dragon[pos].origin != pos 
    443442        || board[pos] == EMPTY 
    444443        || DRAGON2(pos).escape_route >= 6) 
    445444      continue; 
     
    502501    } 
    503502    else 
    504503      gprintf("status of %1m revised to ALIVE\n", pos); 
    505   } 
     504  ) 
    506505   
    507506  sgffile_enddump(outfilename); 
    508507  count_variations = 0; 
     
    595594  if (atari_atari(color, &attack_move, defense_moves, verbose)) { 
    596595    gprintf("Combination attack for %C at %1m, defense at ", color, 
    597596            attack_move); 
    598     for (pos = BOARDMIN; pos < BOARDMAX; pos++) { 
    599       if (ON_BOARD(pos) && defense_moves[pos]) { 
     597    scan_board(pos, 
     598      if (defense_moves[pos]) { 
    600599        if (first) 
    601600          first = 0; 
    602601        else 
    603602          gprintf(", "); 
    604603        gprintf("%1m", pos); 
    605604      } 
    606     } 
     605        ) 
    607606    gprintf("\n"); 
    608607  } 
    609608  else