Ticket #49: gunnar_7_8.8.diff

File gunnar_7_8.8.diff, 2.8 kB (added by gunnar, 3 years ago)

Replace gg_genmove with reg_genmove and life nodes with connection nodes.

  • regression/regress.pl

     
    134134my @failed_links; 
    135135my @FAILED_links; 
    136136 
    137 my @counters = qw/life_node owl_node reading_node trymove/; 
     137my @counters = qw/connection_node owl_node reading_node trymove/; 
    138138 
    139139my %counters; 
    140140 
     
    446446        #print "NOT SKIPPING: $next_cmd\n"; 
    447447        $top_moves = ""; 
    448448        if ($do_topmove) { 
    449           if ($next_cmd =~ /gg_genmove\s+([blackwhite])+/) { 
    450             $next_cmd =~ s/gg_genmove\s+([blackwhite]+)/top_moves_$1/; 
     449          if ($next_cmd =~ /reg_genmove\s+([blackwhite])+/) { 
     450            $next_cmd =~ s/reg_genmove\s+([blackwhite]+)/top_moves_$1/; 
    451451            $top_moves = 1; 
    452452          } 
    453453        } 
     
    611611  my $no_dragon_data = 0; 
    612612  my %stones; 
    613613 
    614   if ($prev_cmd =~ /gg_genmove/) { 
     614  if ($prev_cmd =~ /reg_genmove/) { 
    615615    #FIXME: There may be other commands that won't require dragon_data 
    616616    #to be regenerated.  Better might be to provide a way to query the 
    617617    #engine whether dragon_data is currently available w/out regenerating. 
     
    680680    } 
    681681  } 
    682682   
    683   if ($prev_cmd =~ /^[0-9]*\s*gg_genmove/) { 
     683  if ($prev_cmd =~ /^[0-9]*\s*reg_genmove/) { 
    684684    if (! ($next_cmd =~ /^#\?\s*\[(!)?\(?(.*)\)?\]\*?\s*$/)) { 
    685685      print "BAD TEST: $next_cmd\n"; 
    686686    } 
     
    700700      $stones{$result} .= ";try_wrong;"; 
    701701    } 
    702702  } else { 
    703     # Experimental - should work for gg_genmove too! 
     703    # Experimental - should work for reg_genmove too! 
    704704    if (! ($next_cmd =~ /^#\?\s*\[(!)?\(?(.*)\)?\]\*?\s*$/)) { 
    705705      print "BAD TEST: $next_cmd\n"; 
    706706    }  #see commend on this regex above. 
     
    757757  } 
    758758 
    759759  my %tmarr; 
    760   if ($prev_cmd =~ /.*gg_genmove\s+([whiteblack]+)/) { 
     760  if ($prev_cmd =~ /.*reg_genmove\s+([whiteblack]+)/) { 
    761761    go_command ("top_moves"); 
    762762    my $top_moves = <$goprog_out>; 
    763763    <$goprog_out>; 
  • regression/regress.plx

     
    329329  $_; 
    330330} 
    331331  
    332 my @counters = qw/life_node owl_node reading_node trymove/; 
     332my @counters = qw/connection_node owl_node reading_node trymove/; 
    333333 
    334334if ($move) { 
    335335#CASE 2a - move detail - extract interesting info from trace file. 
     
    512512  my $cmdline = "gq -l $1 " . ($2 ? "-L $2 " : ""); 
    513513  if ($gtpall =~ m@ .* (owl_attack|owl_defend|dragon_status) \s* ([A-Z]\d{1,2}) \s* $ @x) { 
    514514    $cmdline .= "--decide-dragon $2 -o x.sgf" ; 
    515   } elsif ($gtpall =~ m@ .* (gg_genmove\s+[whiteblack]*)  \s* $@x) { 
     515  } elsif ($gtpall =~ m@ .* (reg_genmove\s+[whiteblack]*)  \s* $@x) { 
    516516    $cmdline .= "-t -w -d0x101800"; 
    517517  } elsif ($gtpall =~ m@ .* (attack|defend) \s* ([A-Z]\d{1,2}) \s* $ @x) { 
    518518    $cmdline .= "--decide-string $2 -o x.sgf";