X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRifle.js;h=7d71a98a523f1c32878aed781cb764ee5a70c1a1;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hp=98661ae767cfaff3b09f7ca4cbd2f729012f8bb0;hpb=32f6285ee325a14286562a53baefc647201df2af;p=vchess.git diff --git a/client/src/variants/Rifle.js b/client/src/variants/Rifle.js index 98661ae7..7d71a98a 100644 --- a/client/src/variants/Rifle.js +++ b/client/src/variants/Rifle.js @@ -1,12 +1,6 @@ import { ChessRules, PiPo, Move } from "@/base_rules"; export class RifleRules extends ChessRules { - getEpSquare(moveOrSquare) { - if (typeof moveOrSquare !== "object" || moveOrSquare.appear.length > 0) - return super.getEpSquare(moveOrSquare); - // Capturing move: no en-passant - return undefined; - } getBasicMove([sx, sy], [ex, ey], tr) { let mv = new Move({ @@ -78,4 +72,5 @@ export class RifleRules extends ChessRules { static get SEARCH_DEPTH() { return 2; } + };