Ignore upperbound and lowerbound scores (Stockfish originates these).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 15 Nov 2013 18:08:43 +0000 (19:08 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 15 Nov 2013 18:08:43 +0000 (19:08 +0100)
remoteglot.pl

index 8e04570..b480b80 100755 (executable)
@@ -188,6 +188,7 @@ while (1) {
        if ($nfound > 0 && vec($rout, fileno($engine->{'read'}), 1) == 1) {
                my @lines = read_lines($engine);
                for my $line (@lines) {
+                       next if $line =~ /(upper|lower)bound/;
                        handle_uci($engine, $line, 1);
                }
                $sleep = 0;
@@ -197,6 +198,7 @@ while (1) {
        if ($nfound > 0 && vec($rout, fileno($engine2->{'read'}), 1) == 1) {
                my @lines = read_lines($engine2);
                for my $line (@lines) {
+                       next if $line =~ /(upper|lower)bound/;
                        handle_uci($engine2, $line, 0);
                }
                $sleep = 0;