From: Benjamin Auder Date: Thu, 4 Mar 2021 21:06:47 +0000 (+0100) Subject: Attempt to fix SYnchrone2 getCurrentScore() X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/static/current/git-logo.png?a=commitdiff_plain;h=479a62bfcecf458628f6be32ab7831f54f050c0b;p=vchess.git Attempt to fix SYnchrone2 getCurrentScore() --- diff --git a/client/src/variants/Synchrone2.js b/client/src/variants/Synchrone2.js index af77a8c0..396a0c68 100644 --- a/client/src/variants/Synchrone2.js +++ b/client/src/variants/Synchrone2.js @@ -223,12 +223,15 @@ export class Synchrone2Rules extends Synchrone1Rules { } getCurrentScore() { - if (this.movesCount % 4 != 0) - // Turn (2 x [white + black]) not over yet + if (this.movesCount % 2 != 0) + // Turn [white + black] not over yet return "*"; // Was a king captured? if (this.kingPos['w'][0] < 0) return "0-1"; if (this.kingPos['b'][0] < 0) return "1-0"; + if (this.movesCount % 4 == 2) + // Turn (2 x [white + black]) not over yet + return "*"; const whiteCanMove = this.atLeastOneMove('w'); const blackCanMove = this.atLeastOneMove('b'); if (whiteCanMove && blackCanMove) return "*";