X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fvariants%2FLoser.js;h=dcc5c112e9740083edfc6f61fb3583953320ef23;hb=f6dbe8e31a3260487664f1e0b50710b3f3efaf5f;hp=6731d322f57d8ebc09ec05ea3189dc58b5905ad8;hpb=643479f8d7c3622b57fc49c4f10d9950793ebf4f;p=vchess.git diff --git a/public/javascripts/variants/Loser.js b/public/javascripts/variants/Loser.js index 6731d322..dcc5c112 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]); @@ -97,7 +87,7 @@ class LoserRules extends ChessRules return moves; } - underCheck(move) + underCheck(color) { return false; //No notion of check } @@ -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) { }