if (current_display_line &&
current_display_move < current_display_line.pretty_pv.length - 1 &&
- current_display_line.pretty_pv[current_display_move] === move.san) {
+ current_display_line.pretty_pv[current_display_move + 1] === move.san) {
next_move();
return;
}
}
var format_short_score = function(score) {
+ if (!score) {
+ return "???";
+ }
if (score[0] === 'm') {
if (score[2]) { // Is a bound.
return score[2] + "\u00a0M" + pad(score[1], 3);