X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRifle.js;h=94a6d058a386e8ee1d0b05be51e77cf8b5b34015;hb=165530a519288327f3a6364a43f1b9e73d944a20;hp=98661ae767cfaff3b09f7ca4cbd2f729012f8bb0;hpb=32f6285ee325a14286562a53baefc647201df2af;p=vchess.git diff --git a/client/src/variants/Rifle.js b/client/src/variants/Rifle.js index 98661ae7..94a6d058 100644 --- a/client/src/variants/Rifle.js +++ b/client/src/variants/Rifle.js @@ -1,13 +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({ appear: [],