Limit search depth to 2 for Fusion variant
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 17 Jan 2021 00:52:47 +0000 (01:52 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 17 Jan 2021 00:52:47 +0000 (01:52 +0100)
client/src/variants/Fusion.js

index 2ead9ad..a0098ab 100644 (file)
@@ -419,6 +419,10 @@ export class FusionRules extends ChessRules {
     );
   }
 
+  static get SEARCH_DEPTH() {
+    return 2;
+  }
+
   getNotation(move) {
     if (move.appear.length == 2 && move.vanish.length == 1) {
       // Fission (because no capture in this case)