]> git.sesse.net Git - remoteglot/commitdiff
Revert "Include the PV move in the low-depth analysis."
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 5 Nov 2021 14:34:03 +0000 (15:34 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 5 Nov 2021 14:34:03 +0000 (15:34 +0100)
This reverts commit b827590935f10fd11c664e513f4daf94c52cce2a.

remoteglot.pl

index abbbd983a7127abf317ef1c61916d2038db70c76..fb663f8b2ac5c5b06f199c42158c7c15433f53dd 100755 (executable)
@@ -544,13 +544,7 @@ sub parse_infos {
                my $cp = $info->{'score_cp1'} // $info->{'score_cp'};
                my $mate = $info->{'score_mate1'} // $info->{'score_mate'};
                my $splicepos = $info->{'splicepos1'} // $info->{'splicepos'};
-               my $bestmove;
-               if (defined($info->{'pv1'})) {  # Avoid autovivification.
-                       $bestmove = $info->{'pv1'}[0];
-               } else {
-                       $bestmove = $info->{'pv'}[0];
-               }
-               push @{$info->{'lowdepth'}}, [ $d, $cp, $mate, $splicepos, $bestmove ];
+               push @{$info->{'lowdepth'}}, [ $d, $cp, $mate, $splicepos ];
        }
 }
 
@@ -965,9 +959,7 @@ sub output_json {
        $json->{'lowdepth'} = {};
        if (exists($info->{'lowdepth'})) {
                for my $ld (@{$info->{'lowdepth'}}) {
-                       my $score = score_digest_inner($ld->[1], $ld->[2], $ld->[3], 0, $pos_calculating);
-                       push @$score, prettyprint_pv($pos_calculating, $ld->[4]);
-                       $json->{'lowdepth'}{$ld->[0]} = $score;
+                       $json->{'lowdepth'}{$ld->[0]} = score_digest_inner($ld->[1], $ld->[2], $ld->[3], 0, $pos_calculating);
                }
        }