Skip to content

Commit 7d42d02

Browse files
committed
Set IID half way between d/2 and d-4
Master IID formula is depth / 2 Previous patch is depth - 4 * ONE_PLY This one is the middle way: (dept/2 + depth-4*ONE_PLY)/2 -> depth-2*ONE_PLY-depth/4 After 16000 games at 60+0.05 th 1 ELO: 4.08 +-3.1 (95%) LOS: 99.5% Total: 16000 W: 2742 L: 2554 D: 10704 bench: 4781239
1 parent c89274d commit 7d42d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ namespace {
745745
&& ttMove == MOVE_NONE
746746
&& (PvNode || (!inCheck && ss->staticEval + Value(256) >= beta)))
747747
{
748-
Depth d = (PvNode ? depth - 2 * ONE_PLY : depth - 4 * ONE_PLY);
748+
Depth d = depth - 2 * ONE_PLY - (PvNode ? DEPTH_ZERO : depth / 4);
749749

750750
ss->skipNullMove = true;
751751
search<PvNode ? PV : NonPV>(pos, ss, alpha, beta, d);

0 commit comments

Comments
 (0)