X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FPawns.js;h=b3e84ea9f580e9e7367bde07a1604b82d2e66ffb;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hp=83ccca70d96636ae5883be12dfe6eac14e855ad3;hpb=964eda04ad6415b4ec95387ea08b63a3d0f0f9cc;p=vchess.git diff --git a/client/src/variants/Pawns.js b/client/src/variants/Pawns.js index 83ccca70..b3e84ea9 100644 --- a/client/src/variants/Pawns.js +++ b/client/src/variants/Pawns.js @@ -1,6 +1,7 @@ import { ChessRules } from "@/base_rules"; export class PawnsRules extends ChessRules { + static get PawnSpecs() { return Object.assign( {}, @@ -14,6 +15,8 @@ export class PawnsRules extends ChessRules { return false; } + scanKings() {} + static GenRandInitFen() { return "8/pppppppp/8/8/8/8/PPPPPPPP/8 w 0 -"; } @@ -36,4 +39,12 @@ export class PawnsRules extends ChessRules { if (!this.atLeastOneMove()) return "1/2"; return "*"; } + + postPlay() {} + postUndo() {} + + static get SEARCH_DEPTH() { + return 4; + } + };