X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fvariants%2FLoser.js;h=e6eb3207d3bd26b9bb2581223bee4e288ba0cc4c;hb=388e4c401f05b1f6a4c54e33c9da9114969a53c0;hp=6731d322f57d8ebc09ec05ea3189dc58b5905ad8;hpb=643479f8d7c3622b57fc49c4f10d9950793ebf4f;p=vchess.git diff --git a/public/javascripts/variants/Loser.js b/public/javascripts/variants/Loser.js index 6731d322..e6eb3207 100644 --- a/public/javascripts/variants/Loser.js +++ b/public/javascripts/variants/Loser.js @@ -2,16 +2,6 @@ class LoserRules extends ChessRules { static get HasFlags() { return false; } - setOtherVariables(fen) - { - const parsedFen = V.ParseFen(fen); - const epSq = parsedFen.enpassant != "-" - ? V.SquareToCoords(parsedFen.enpassant) - : undefined; - this.epSquares = [ epSq ]; - this.scanKingsRooks(fen); - } - getPotentialPawnMoves([x,y]) { let moves = super.getPotentialPawnMoves([x,y]); @@ -107,7 +97,7 @@ class LoserRules extends ChessRules return []; } - // No variables update because no castling + // No variables update because no royal king + no castling updateVariables(move) { } unupdateVariables(move) { }