* @type {Number}
* @const
* @private */
-var SCRIPT_VERSION = 2020122900;
+var SCRIPT_VERSION = 2021010200;
/**
* The current backend URL.
}
if (score[0] === 'tb') {
if (score[1] > 0) {
- return "White wins in " + Math.ceil(score[1] / 2);
+ if (score[1] == 0) {
+ return "Won for white (tablebase)";
+ } else {
+ return "White wins in " + Math.ceil(score[1] / 2);
+ }
} else {
- return "Black wins in " + Math.ceil(-score[1] / 2);
+ if (score[1] == -1) {
+ return "Won for black (tablebase)";
+ } else {
+ return "Black wins in " + Math.ceil(-score[1] / 2);
+ }
}
} else if (score[0] === 'm') {
if (score[1] > 0) {