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