From a6ae2d3a31e93000e65bdfd8f0b6d9a3e6b8ce1b Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sun, 23 Jul 2017 17:25:23 -0700 Subject: [PATCH] Simplify aspiration window Don't modify alpha window on fail-high Bench: 5875983 Closes #1172 --- src/search.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 4551c39d..6e5d6ab3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -437,10 +437,7 @@ void Thread::search() { } } else if (bestValue >= beta) - { - alpha = (alpha + beta) / 2; beta = std::min(bestValue + delta, VALUE_INFINITE); - } else break; @@ -1061,8 +1058,8 @@ moves_loop: // When in check search starts from here ++static_cast(thisThread)->bestMoveChanges; } else - // All other moves but the PV are set to the lowest value: this is - // not a problem when sorting because the sort is stable and the + // All other moves but the PV are set to the lowest value: this + // is not a problem when sorting because the sort is stable and the // move position in the list is preserved - just the PV is pushed up. rm.score = -VALUE_INFINITE; } -- 2.39.2