depth: Limit depth to 9 if change side when no way
This commit is contained in:
parent
a0cee1bd06
commit
01f7ebe672
|
@ -561,6 +561,13 @@ Depth getSearchDepth(const Position *pos)
|
|||
d = 4;
|
||||
}
|
||||
|
||||
// WAR: Limit depth if change side when no way
|
||||
if (!rule.isLoseButNotChangeSideWhenNoWay) {
|
||||
if (d > 9) {
|
||||
d = 9;
|
||||
}
|
||||
}
|
||||
|
||||
d += DEPTH_ADJUST;
|
||||
|
||||
d = d >= 1 ? d : 1;
|
||||
|
|
Loading…
Reference in New Issue