Change castle flags. Eightpieces still not OK, but almost
[vchess.git] / client / src / variants / Grasshopper.js
index a991035..82caa9f 100644 (file)
@@ -133,9 +133,13 @@ export const VariantRules = class GrasshopperRules extends ChessRules {
     );
   }
 
+  static get SEARCH_DEPTH() {
+    return 2;
+  }
+
   static GenRandInitFen(randomness) {
     return ChessRules.GenRandInitFen(randomness)
-      .replace("w 0 1111 -", "w 0 1111")
+      .slice(0, -2)
       .replace(
         "/pppppppp/8/8/8/8/PPPPPPPP/",
         "/gggggggg/pppppppp/8/8/PPPPPPPP/GGGGGGGG/"