X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FKnightrelay1.js;h=1e7bfabb8fd0d09d77eb05c388835a8f6c1726ca;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hp=4f9f7e350e85e13d651eedd00bad19c70ef05525;hpb=6f2f94374f1e73c375edf732d9425e575e81fff7;p=vchess.git diff --git a/client/src/variants/Knightrelay1.js b/client/src/variants/Knightrelay1.js index 4f9f7e35..1e7bfabb 100644 --- a/client/src/variants/Knightrelay1.js +++ b/client/src/variants/Knightrelay1.js @@ -1,6 +1,7 @@ import { ChessRules } from "@/base_rules"; export class Knightrelay1Rules extends ChessRules { + static get HasEnpassant() { return false; } @@ -120,7 +121,8 @@ export class Knightrelay1Rules extends ChessRules { const finalSquare = V.CoordsToSquare(move.end); const piece = this.getPiece(move.start.x, move.start.y); - // Since pieces and pawns could move like knight, indicate start and end squares + // Since pieces and pawns could move like knight, + // indicate start and end squares let notation = piece.toUpperCase() + initSquare + @@ -138,4 +140,5 @@ export class Knightrelay1Rules extends ChessRules { return notation; } + };