Fixes
[vchess.git] / client / src / variants / Antiking.js
index 6771089..77f0c83 100644 (file)
@@ -160,6 +160,7 @@ export const VariantRules = class AntikingRules extends ChessRules {
     for (let c of ["w", "b"]) {
       if (c == 'b' && randomness == 1) {
         pieces['b'] = pieces['w'];
+        antikingPos['b'] = antikingPos['w'];
         break;
       }
 
@@ -222,4 +223,8 @@ export const VariantRules = class AntikingRules extends ChessRules {
       " w 0 1111 -"
     );
   }
+
+  static get SEARCH_DEPTH() {
+    return 2;
+  }
 };