From e392d98f1059416caa96ede7543cd2cfe6ca1bcf Mon Sep 17 00:00:00 2001 From: Calcitem Date: Tue, 21 Sep 2021 00:17:39 +0800 Subject: [PATCH] depth: Only use user's setting when DrawOnHumanExperience is on DrawOnHumanExperience is not related with mobility. --- src/evaluate.cpp | 4 ---- src/mills.cpp | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index a57e6ae3..3e50ab2c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -59,10 +59,6 @@ Value Evaluation::value() case Phase::placing: if (gameOptions.getConsiderMobility()) { value += pos.get_mobility_diff(); - } else if (gameOptions.getDrawOnHumanExperience()) { - if (pos.piece_on_board_count(WHITE) + pos.piece_on_board_count(BLACK) <= 5) { - value += pos.get_mobility_diff(); - } } pieceInHandDiffCount = pos.piece_in_hand_count(WHITE) - pos.piece_in_hand_count(BLACK); diff --git a/src/mills.cpp b/src/mills.cpp index 75efdaab..fc8e51ab 100644 --- a/src/mills.cpp +++ b/src/mills.cpp @@ -468,6 +468,11 @@ Depth get_search_depth(const Position *pos) if (!gameOptions.getDeveloperMode()) { if (pos->phase == Phase::placing) { + + if (!gameOptions.getDrawOnHumanExperience()) { + return (Depth)level; + } + const Depth placingDepthTable9[25] = { +1, 1, +1, 1, /* 0 ~ 3 */ +3, 3, +3, 15, /* 4 ~ 7 */