Tweak probcut margin for extinction variants
authorianfab <ianfab@users.noreply.github.com>
Mon, 13 Aug 2018 19:41:05 +0000 (21:41 +0200)
committerianfab <ianfab@users.noreply.github.com>
Tue, 14 Aug 2018 18:40:35 +0000 (20:40 +0200)
extinction STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 411 W: 238 L: 138 D: 35
http://35.161.250.236:6543/tests/view/5b71df356e23db0fbab0dca3

src/search.cpp

index 1e6d8e3..61e414b 100644 (file)
@@ -801,7 +801,7 @@ namespace {
         &&  depth >= 5 * ONE_PLY
         &&  abs(beta) < VALUE_MATE_IN_MAX_PLY)
     {
-        Value rbeta = std::min(beta + 216 - 48 * improving, VALUE_INFINITE);
+        Value rbeta = std::min(beta + 216 * (1 + (pos.extinction_value() != VALUE_NONE)) - 48 * improving, VALUE_INFINITE);
         MovePicker mp(pos, ttMove, rbeta - ss->staticEval, &thisThread->captureHistory);
         int probCutCount = 0;