Ticket #49: gunnar_7_8.8.diff
| File gunnar_7_8.8.diff, 2.8 kB (added by gunnar, 3 years ago) |
|---|
-
regression/regress.pl
134 134 my @failed_links; 135 135 my @FAILED_links; 136 136 137 my @counters = qw/ life_node owl_node reading_node trymove/;137 my @counters = qw/connection_node owl_node reading_node trymove/; 138 138 139 139 my %counters; 140 140 … … 446 446 #print "NOT SKIPPING: $next_cmd\n"; 447 447 $top_moves = ""; 448 448 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/; 451 451 $top_moves = 1; 452 452 } 453 453 } … … 611 611 my $no_dragon_data = 0; 612 612 my %stones; 613 613 614 if ($prev_cmd =~ / gg_genmove/) {614 if ($prev_cmd =~ /reg_genmove/) { 615 615 #FIXME: There may be other commands that won't require dragon_data 616 616 #to be regenerated. Better might be to provide a way to query the 617 617 #engine whether dragon_data is currently available w/out regenerating. … … 680 680 } 681 681 } 682 682 683 if ($prev_cmd =~ /^[0-9]*\s* gg_genmove/) {683 if ($prev_cmd =~ /^[0-9]*\s*reg_genmove/) { 684 684 if (! ($next_cmd =~ /^#\?\s*\[(!)?\(?(.*)\)?\]\*?\s*$/)) { 685 685 print "BAD TEST: $next_cmd\n"; 686 686 } … … 700 700 $stones{$result} .= ";try_wrong;"; 701 701 } 702 702 } else { 703 # Experimental - should work for gg_genmove too!703 # Experimental - should work for reg_genmove too! 704 704 if (! ($next_cmd =~ /^#\?\s*\[(!)?\(?(.*)\)?\]\*?\s*$/)) { 705 705 print "BAD TEST: $next_cmd\n"; 706 706 } #see commend on this regex above. … … 757 757 } 758 758 759 759 my %tmarr; 760 if ($prev_cmd =~ /.* gg_genmove\s+([whiteblack]+)/) {760 if ($prev_cmd =~ /.*reg_genmove\s+([whiteblack]+)/) { 761 761 go_command ("top_moves"); 762 762 my $top_moves = <$goprog_out>; 763 763 <$goprog_out>; -
regression/regress.plx
329 329 $_; 330 330 } 331 331 332 my @counters = qw/ life_node owl_node reading_node trymove/;332 my @counters = qw/connection_node owl_node reading_node trymove/; 333 333 334 334 if ($move) { 335 335 #CASE 2a - move detail - extract interesting info from trace file. … … 512 512 my $cmdline = "gq -l $1 " . ($2 ? "-L $2 " : ""); 513 513 if ($gtpall =~ m@ .* (owl_attack|owl_defend|dragon_status) \s* ([A-Z]\d{1,2}) \s* $ @x) { 514 514 $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) { 516 516 $cmdline .= "-t -w -d0x101800"; 517 517 } elsif ($gtpall =~ m@ .* (attack|defend) \s* ([A-Z]\d{1,2}) \s* $ @x) { 518 518 $cmdline .= "--decide-string $2 -o x.sgf";
