* @type {Number}
* @const
* @private */
-var SCRIPT_VERSION = 2016032000;
+var SCRIPT_VERSION = 2016032200;
/**
* The current backend URL.
* name: string,
* url: string,
* id: string,
+ * score: Object
* }>}
* @private
*/
/**
* @param {number} line_num
- * @param {number=} opt_limit
- * @param {boolean=} opt_showlast
+ * @param {number=} opt_limit If set, show at most this number of moves.
+ * @param {boolean=} opt_showlast If limit is set, show the last moves instead of the first ones.
*/
var print_pv = function(line_num, opt_limit, opt_showlast) {
var display_line = display_lines[line_num];
} else {
$("#history").html(
'(<a class="move" href="javascript:collapse_history(true)">collapse</a>) ' +
- print_pv(0, 1, 'W'));
+ print_pv(0));
}
}
game_a.appendChild(game_name);
game_span.appendChild(game_a);
}
+
+ var score = " (" + format_short_score(game['score']) + ")";
+ game_span.appendChild(document.createTextNode(score));
+
games_div.appendChild(game_span);
}
}