X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FMarseille.js;h=90084dc28f271daa86d64f15e76c47a8444c1180;hp=940d9ba9d5683d15e2c55f9a1f495264994f2554;hb=af34341d92d47d14f396e7f4adb81f2a7e9d9a61;hpb=fef153df51fe60a5af4c5b2a05e0b1177187bf62 diff --git a/client/src/variants/Marseille.js b/client/src/variants/Marseille.js index 940d9ba9..90084dc2 100644 --- a/client/src/variants/Marseille.js +++ b/client/src/variants/Marseille.js @@ -14,10 +14,6 @@ export class MarseilleRules extends ChessRules { return true; } - getTurnFen() { - return this.turn + this.subTurn; - } - // There may be 2 enPassant squares (if 2 pawns jump 2 squares in same turn) getEnpassantFen() { return this.epSquares[this.epSquares.length - 1].map( @@ -37,10 +33,8 @@ export class MarseilleRules extends ChessRules { this.scanKings(fen); // Extract subTurn from turn indicator: "w" (first move), or // "w1" or "w2" white subturn 1 or 2, and same for black - const fullTurn = V.ParseFen(fen).turn; - this.turn = fullTurn[0]; - // At move 1, the subTurn doesn't need to be specified: - this.subTurn = fullTurn[1] || 1; + this.turn = parsedFen.turn; + this.subTurn = 1; } getEnpassantCaptures([x, y], shiftX) {