]> git.sesse.net Git - remoteglot-book/blobdiff - www/opening-stats.pl
Store and handle the PGN start position.
[remoteglot-book] / www / opening-stats.pl
index f9e85484eb0ca749df78fbd604b9a10a7f748319..3a02cf9fde6fcd917b5d3cbc6237c9a3949c4ce2 100755 (executable)
@@ -21,7 +21,7 @@ my $hex = unpack('H*', $pos->bitpacked_fen);
 print $chld_in $hex, "\n";
 chomp (my $line = <$chld_out>);
 
-my ($white, $draw, $black, $opening_num, $white_avg_elo, $black_avg_elo, $num_elo, $timestamp, @moves) = split / /, $line;
+my ($white, $draw, $black, $opening_num, $white_avg_elo, $black_avg_elo, $num_elo, $timestamp, $pgn_start_position, @moves) = split / /, $line;
 my $opening = $openings{$opening_num} // 'A00: Start position';
 
 # Explore one move out.