X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fopening-stats.pl;fp=www%2Fopening-stats.pl;h=696bfa147c2d5e2017bc8ff8737231e4828e2b54;hb=804c3f70dfd6575f18763df88d475e5190d97d3c;hp=ad578a0b7db95747cfcba67b80bc81ede6eca190;hpb=12fb90fa6c78a3753fb34f2fcb86b1856be718a5;p=remoteglot-book diff --git a/www/opening-stats.pl b/www/opening-stats.pl index ad578a0..696bfa1 100755 --- a/www/opening-stats.pl +++ b/www/opening-stats.pl @@ -69,7 +69,7 @@ for my $move (@{$root_aux_data->{'moves'}}) { } # Get stats for the root position, for the human index. -my $start_pos = Position->start_pos; +my $start_pos = Position->start_pos("white", "black"); my ($json_start_pos, undef) = get_json_move($start_pos, 0, $chld_in, $chld_out); my $total_games = $json_start_pos->{'white'} + $json_start_pos->{'draw'} + $json_start_pos->{'black'}; my $computer_games = $json_start_pos->{'computer'} * 1;