From: Benjamin Auder Date: Fri, 20 Mar 2020 20:16:54 +0000 (+0100) Subject: Lower search depth for Coregal X-Git-Url: https://git.auder.net/doc/html/pieces/img/vendor/%24%7BgetWhatsApp%28link%29%7D?a=commitdiff_plain;h=f82609cd2aea6d5ee880773795278948fbfac666;p=vchess.git Lower search depth for Coregal --- diff --git a/client/src/variants/Coregal.js b/client/src/variants/Coregal.js index 1a4a4038..704ce4c5 100644 --- a/client/src/variants/Coregal.js +++ b/client/src/variants/Coregal.js @@ -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