From 22c591c5862e7ff769ba117f5b6c88d074271352 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sun, 17 Jan 2021 01:52:47 +0100 Subject: [PATCH] Limit search depth to 2 for Fusion variant --- client/src/variants/Fusion.js | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.44.0