From 3abff79df3c50435556d53c1b39ec3e5935b642e Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Sat, 5 Feb 2011 20:24:42 +0200 Subject: [PATCH] Maximum aspiration delta of 64 After 9242 games Mod vs Orig: 1483 - 1373 - 6386 ELO +4 (+- 2.9) Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 19e6c14b..5196e862 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -657,7 +657,7 @@ namespace { int prevDelta1 = bestValues[iteration - 1] - bestValues[iteration - 2]; int prevDelta2 = bestValues[iteration - 2] - bestValues[iteration - 3]; - aspirationDelta = Max(abs(prevDelta1) + abs(prevDelta2) / 2, 16); + aspirationDelta = Min(Max(abs(prevDelta1) + abs(prevDelta2) / 2, 16), 64); aspirationDelta = (aspirationDelta + 7) / 8 * 8; // Round to match grainSize alpha = Max(bestValues[iteration - 1] - aspirationDelta, -VALUE_INFINITE); -- 2.39.2