From 2f9fcef3eb606c6389249c35393265de7d8f392f Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 24 Mar 2020 16:17:07 +0100 Subject: [PATCH] Lower search_depth on a few variants --- client/src/variants/Cannibal.js | 4 ---- client/src/variants/Capture.js | 4 ---- client/src/variants/Losers.js | 4 ---- 3 files changed, 12 deletions(-) diff --git a/client/src/variants/Cannibal.js b/client/src/variants/Cannibal.js index b66ac382..3a87a723 100644 --- a/client/src/variants/Cannibal.js +++ b/client/src/variants/Cannibal.js @@ -231,10 +231,6 @@ export class CannibalRules extends ChessRules { }; } - static get SEARCH_DEPTH() { - return 4; - } - getNotation(move) { let notation = super.getNotation(move); const lastRank = (move.appear[0].c == "w" ? 0 : 7); diff --git a/client/src/variants/Capture.js b/client/src/variants/Capture.js index d7cc57e5..413356dd 100644 --- a/client/src/variants/Capture.js +++ b/client/src/variants/Capture.js @@ -40,8 +40,4 @@ export class CaptureRules extends ChessRules { return V.KeepCaptures(moves); return moves; } - - static get SEARCH_DEPTH() { - return 4; - } }; diff --git a/client/src/variants/Losers.js b/client/src/variants/Losers.js index 4bc6a611..b39d24fb 100644 --- a/client/src/variants/Losers.js +++ b/client/src/variants/Losers.js @@ -65,10 +65,6 @@ export class LosersRules extends ChessRules { return this.turn == "w" ? "1-0" : "0-1"; } - static get SEARCH_DEPTH() { - return 4; - } - evalPosition() { // Less material is better (more subtle in fact but...) return -super.evalPosition(); -- 2.44.0