headline = 'Analysis';
}
- // Credits, where applicable. Note that we don't want the footer to change a lot
- // when e.g. viewing history, so if any of these changed during the game,
- // use the current one still.
- if (current_data['using_lomonosov']) {
- document.getElementById("lomonosov").style.display = null;
- } else {
- document.getElementById("lomonosov").style.display = 'none';
- }
-
// Credits: The engine name/version.
if (current_data['engine'] && current_data['engine']['name'] !== null) {
document.getElementById("engineid").textContent = current_data['engine']['name'];
// The search stats.
if (data['searchstats']) {
document.getElementById("searchstats").textContent = data['searchstats'];
- } else if (data['tablebase'] == 1) {
- document.getElementById("searchstats").textContent = "Tablebase result";
} else if (data['nodes'] && data['nps'] && data['depth']) {
let stats = thousands(data['nodes']) + ' nodes, ' + thousands(data['nps']) + ' nodes/sec, depth ' + data['depth'] + ' ply';
if (data['seldepth']) {
function set_board_position(new_fen) {
board_is_animating = true;
let old_fen = board.fen();
- board.position(new_fen);
+ let animate = old_fen !== '8/8/8/8/8/8/8/';
+ board.position(new_fen, animate);
if (board.fen() === old_fen) {
board_is_animating = false;
}