]> git.sesse.net Git - remoteglot/blobdiff - remoteglot.pl
Start using Chess.js.
[remoteglot] / remoteglot.pl
index e3433aa12414037ff86ba81c5d92e0449514d253..62d3aa1dbc84496be887850af91569bc82f9107e 100755 (executable)
@@ -210,7 +210,6 @@ sub handle_fics {
                        next if (!defined($pos));
                        if ($pos->fen() eq $pos_for_movelist->fen()) {
                                $pos->{'history'} = \@uci_movelist;
                        next if (!defined($pos));
                        if ($pos->fen() eq $pos_for_movelist->fen()) {
                                $pos->{'history'} = \@uci_movelist;
-                               $pos->{'pretty_history'} = \@pretty_movelist;
                        }
                }
                $getting_movelist = 0;
                        }
                }
                $getting_movelist = 0;
@@ -280,7 +279,6 @@ sub handle_pgn {
                                push @uci_moves, $uci_move;
                        }
                        $pos->{'history'} = \@uci_moves;
                                push @uci_moves, $uci_move;
                        }
                        $pos->{'history'} = \@uci_moves;
-                       $pos->{'pretty_history'} = $moves;
 
                        # Sometimes, PGNs lose a move or two for a short while,
                        # or people push out new ones non-atomically. 
 
                        # Sometimes, PGNs lose a move or two for a short while,
                        # or people push out new ones non-atomically. 
@@ -713,7 +711,6 @@ sub output_json {
 
        # single-PV only for now
        $json->{'pv_uci'} = $info->{'pv'};
 
        # single-PV only for now
        $json->{'pv_uci'} = $info->{'pv'};
-       $json->{'pv_pretty'} = [ prettyprint_pv($pos_calculating, @{$info->{'pv'}}) ];
 
        my %refutation_lines = ();
        my @refutation_lines = ();
 
        my %refutation_lines = ();
        my @refutation_lines = ();
@@ -734,7 +731,6 @@ sub output_json {
                                        score_sort_key => score_sort_key($info, $pos_calculating, $mpv, 0),
                                        pretty_score => short_score($info, $pos_calculating, $mpv),
                                        pretty_move => $pretty_move,
                                        score_sort_key => score_sort_key($info, $pos_calculating, $mpv, 0),
                                        pretty_score => short_score($info, $pos_calculating, $mpv),
                                        pretty_move => $pretty_move,
-                                       pv_pretty => \@pretty_pv,
                                };
                                $refutation_lines{$pv->[0]}->{'pv_uci'} = $pv;
                        };
                                };
                                $refutation_lines{$pv->[0]}->{'pv_uci'} = $pv;
                        };