X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAlice.js;h=e81d3fc87f15a46db2d604d64a086e2978b50c90;hp=e80e13b6a1ee0bc37b790b4f88f8ff9318337811;hb=0c3fe8a6c3e02af46e0bc646b40c1a0c420f9dcd;hpb=41c80bb63b85b2696d3925c10784c3d7bb5d2aa3 diff --git a/client/src/variants/Alice.js b/client/src/variants/Alice.js index e80e13b6..e81d3fc8 100644 --- a/client/src/variants/Alice.js +++ b/client/src/variants/Alice.js @@ -293,9 +293,12 @@ export const VariantRules = class AliceRules extends ChessRules this.kingPos[c] = [move.start.x, move.start.y]; } - checkGameEnd() + getCurrentScore() { - const pieces = Object.keys(V.ALICE_CODES); + if (this.atLeastOneMove()) // game not over + return "*"; + + const pieces = Object.keys(V.ALICE_CODES); const color = this.turn; const kp = this.kingPos[color]; const mirrorSide = (pieces.includes(this.getPiece(kp[0],kp[1])) ? 1 : 2);