Ticket #199: gunnar_7_12.8b.diff

File gunnar_7_12.8b.diff, 1.1 KB (added by gunnar, 3 years ago)

Revised patch

  • engine/owl.c

     
    10171019   * interesting if the opponent doesn't already have two eyes. 
    10181020   * If we have more eyes, always check for a backfilling move. 
    10191021   */ 
    1020   if (!you_look_alive 
     1022  if ((!you_look_alive || we_might_be_inessential) 
    10211023      && !safe_outside_liberty_found 
    10221024      && (moves[0].value < 110 || I_have_more_eyes)) { 
    10231025    int pos; 
     
    10591064   * to fill a mutual liberty or play a corresponding backfilling 
    10601065   * move. 
    10611066   */ 
    1062   if (!you_look_alive) { 
     1067  if (!you_look_alive || we_might_be_inessential) { 
    10631068    if (safe_outside_liberty_found 
    10641069        && outside_liberty.pos != NO_MOVE) { 
    10651070      move_value = semeai_move_value(outside_liberty.pos, 
     
    59285928        already_checked[lunch] = 1; 
    59295929 
    59305930        attack_and_defend(lunch, &acode, &apos, &dcode, &dpos); 
    5931         if (acode != 0) { 
     5931        if (acode != 0 
     5932            && (!liberty_of_goal(apos, owl) || safe_move(apos, color))) { 
    59325933          owl->lunch[lunches] = lunch; 
    59335934          owl->lunch_attack_code[lunches]  = acode; 
    59345935          owl->lunch_attack_point[lunches] = apos;