depth: Limit 6th and 7th move depth to 15

Because if considerMobility is enabled, 6th and 7th
is too slow, so need to limit it. But cannot limit
less than 15, otherwise, c5 d5 b4 f4 d6 d2,
next move, white will place a lose point.

Now the performance only reduce 12%.
This commit is contained in:
Calcitem 2021-06-16 00:38:35 +08:00
parent 2a0ebba1bf
commit fefa064cb9
1 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,8 @@ Depth get_search_depth(const Position *pos)
if (!gameOptions.getDeveloperMode()) {
if (pos->phase == Phase::placing) {
const Depth placingDepthTable[] = {
+1, 1, +1, 1, /* 0 ~ 3 */
+3, 0, +0, 0, /* 4 ~ 7 */
+1, 1, +1, 1, /* 0 ~ 3 */
+3, 15, +15, 0, /* 4 ~ 7 */
+0, 0, +0, 0, /* 8 ~ 11 */
+0, 0, +0, 0, /* 12 ~ 15 */
+0, 0, +0, 0, /* 16 ~ 19 */