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;
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;
#
if (exists($info->{'pv1'}) && !exists($info->{'pv2'})) {
for my $key (qw(pv score_cp score_mate nodes nps depth seldepth tbhits)) {
- if (exists($info->{$key . '1'}) && !exists($info->{$key})) {
+ if (exists($info->{$key . '1'})) {
$info->{$key} = $info->{$key . '1'};
}
}
} else {
if (exists($info->{'score_cp' . $mpv})) {
my $score = $info->{'score_cp' . $mpv} * 0.01;
+ if ($score == 0) {
+ return " 0.00";
+ }
if ($invert) {
$score = -$score;
}
} else {
if (exists($info->{'score_cp' . $mpv})) {
my $score = $info->{'score_cp' . $mpv};
+ if ($score == 0) {
+ return " 0.00";
+ }
if ($invert) {
$score = -$score;
}