Lower search depth for Coregal
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 20 Mar 2020 20:16:54 +0000 (21:16 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 20 Mar 2020 20:16:54 +0000 (21:16 +0100)
client/src/variants/Coregal.js

index 1a4a403..704ce4c 100644 (file)
@@ -298,6 +298,10 @@ export class CoregalRules extends ChessRules {
 
   // NOTE: do not set queen value to 1000 or so, because there may be several.
 
+  static get SEARCH_DEPTH() {
+    return 2;
+  }
+
   getNotation(move) {
     if (move.appear.length == 2) {
       // Castle: determine the right notation