X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FGrasshopper.js;h=90411d1441342035e035868ec39e9102a2e7d24e;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hp=5069e2317a10cd4f119491ac78d2a06e664419e3;hpb=cd49e617866590dbc68530ad961b109cdbe1ce55;p=vchess.git diff --git a/client/src/variants/Grasshopper.js b/client/src/variants/Grasshopper.js index 5069e231..90411d14 100644 --- a/client/src/variants/Grasshopper.js +++ b/client/src/variants/Grasshopper.js @@ -3,6 +3,7 @@ import { ArrayFun } from "@/utils/array"; import { randInt } from "@/utils/alea"; export class GrasshopperRules extends ChessRules { + static get HasEnpassant() { return false; } @@ -11,10 +12,7 @@ export class GrasshopperRules extends ChessRules { return Object.assign( {}, ChessRules.PawnSpecs, - { - twoSquares: false, - promotions: ChessRules.PawnSpecs.promotions.concat([V.GRASSHOPPER]) - } + { promotions: ChessRules.PawnSpecs.promotions.concat([V.GRASSHOPPER]) } ); } @@ -111,4 +109,5 @@ export class GrasshopperRules extends ChessRules { "/gggggggg/pppppppp/8/8/PPPPPPPP/GGGGGGGG/" ); } + };