From: Steinar H. Gunderson Date: Mon, 21 Mar 2016 23:13:21 +0000 (+0100) Subject: Add a SCORE_NONE, and fix a typo. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=ed756fd94f3bb3e155402268c562016c842c4217;ds=sidebyside Add a SCORE_NONE, and fix a typo. --- diff --git a/www/js/hash-lookup.js b/www/js/hash-lookup.js index 274490f..8fe1297 100644 --- a/www/js/hash-lookup.js +++ b/www/js/hash-lookup.js @@ -90,7 +90,7 @@ var translate_line = function(board, fen, line) { var score = null; if (line['value']['score_type'] === 'SCORE_CP') { score = ['cp', line['value']['score_cp']]; - } else if (line['value']['score_mate'] === 'SCORE_MATE') { + } else if (line['value']['score_type'] === 'SCORE_MATE') { score = ['m', line['value']['score_mate']]; } if (score) { diff --git a/www/js/hashprobe.proto b/www/js/hashprobe.proto index dfd16fd..bb34806 100644 --- a/www/js/hashprobe.proto +++ b/www/js/hashprobe.proto @@ -33,8 +33,9 @@ message HashProbeMove { } message HashProbeScore { enum ScoreType { - SCORE_CP = 0; - SCORE_MATE = 1; + SCORE_NONE = 0; + SCORE_CP = 1; + SCORE_MATE = 2; } ScoreType score_type = 1; int32 score_cp = 2;