From: Benjamin Auder Date: Sun, 17 Jan 2021 00:52:47 +0000 (+0100) Subject: Limit search depth to 2 for Fusion variant X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/user/%7B%7B%20targetUrl%20%7D%7D?a=commitdiff_plain;h=22c591c5862e7ff769ba117f5b6c88d074271352;p=vchess.git Limit search depth to 2 for Fusion variant --- diff --git a/client/src/variants/Fusion.js b/client/src/variants/Fusion.js index 2ead9ad7..a0098ab6 100644 --- a/client/src/variants/Fusion.js +++ b/client/src/variants/Fusion.js @@ -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)