From 1970e049ee112032977909f5716fc1e5887214d7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Sat, 1 Dec 2018 13:27:57 +0100 Subject: [PATCH] Fix Loser chess --- public/javascripts/variants/Loser.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/javascripts/variants/Loser.js b/public/javascripts/variants/Loser.js index 0ed3edc2..b4d8b4f0 100644 --- a/public/javascripts/variants/Loser.js +++ b/public/javascripts/variants/Loser.js @@ -2,13 +2,15 @@ class LoserRules extends ChessRules { initVariables(fen) { - // No castling, hence no flags; but flags defined for compatibility - this.flags = "-"; const epSq = this.moves.length > 0 ? this.getEpSquare(this.lastMove) : undefined; this.epSquares = [ epSq ]; } - setFlags(fen) { } + setFlags(fen) + { + // No castling, hence no flags; but flags defined for compatibility + this.castleFlags = "0000"; + } getPotentialPawnMoves([x,y]) { -- 2.44.0