Several small improvements + integrate options + first working draft of Cwda
[vchess.git] / client / src / variants / Pawns.js
index 83ccca7..fdecf0a 100644 (file)
@@ -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;
+  }
+
 };