depth: Only use user's setting when DrawOnHumanExperience is on
DrawOnHumanExperience is not related with mobility.
This commit is contained in:
parent
1827f89051
commit
e392d98f10
|
@ -59,10 +59,6 @@ Value Evaluation::value()
|
||||||
case Phase::placing:
|
case Phase::placing:
|
||||||
if (gameOptions.getConsiderMobility()) {
|
if (gameOptions.getConsiderMobility()) {
|
||||||
value += pos.get_mobility_diff();
|
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);
|
pieceInHandDiffCount = pos.piece_in_hand_count(WHITE) - pos.piece_in_hand_count(BLACK);
|
||||||
|
|
|
@ -468,6 +468,11 @@ Depth get_search_depth(const Position *pos)
|
||||||
|
|
||||||
if (!gameOptions.getDeveloperMode()) {
|
if (!gameOptions.getDeveloperMode()) {
|
||||||
if (pos->phase == Phase::placing) {
|
if (pos->phase == Phase::placing) {
|
||||||
|
|
||||||
|
if (!gameOptions.getDrawOnHumanExperience()) {
|
||||||
|
return (Depth)level;
|
||||||
|
}
|
||||||
|
|
||||||
const Depth placingDepthTable9[25] = {
|
const Depth placingDepthTable9[25] = {
|
||||||
+1, 1, +1, 1, /* 0 ~ 3 */
|
+1, 1, +1, 1, /* 0 ~ 3 */
|
||||||
+3, 3, +3, 15, /* 4 ~ 7 */
|
+3, 3, +3, 15, /* 4 ~ 7 */
|
||||||
|
|
Loading…
Reference in New Issue