From: Benjamin Auder Date: Tue, 24 Mar 2020 15:17:07 +0000 (+0100) Subject: Lower search_depth on a few variants X-Git-Url: https://git.auder.net/assets/doc/html/%7B%7B%20path%28%27mixstore_user_board%27%29%20%7D%7D?a=commitdiff_plain;h=2f9fcef3eb606c6389249c35393265de7d8f392f;p=vchess.git Lower search_depth on a few variants --- 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();