depth: Only use user's setting when DrawOnHumanExperience is on

DrawOnHumanExperience is not related with mobility.
This commit is contained in:
Calcitem 2021-09-21 00:17:39 +08:00
parent 1827f89051
commit e392d98f10
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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 */