Skip to content

Commit

Permalink
More random draw evaluations
Browse files Browse the repository at this point in the history
Use the randomized draw function value_draw() also for draw evalutions.

This extends the earlier commit
97d2cc9
which did this only for 3folds.

As in that case, this test was yellow at STC and LTC, but green at VLTC,
indicative of the fact that the higher the drawrate, the more likely this
idea is beneficial.

STC:
LLR: -2.96 (-2.94,2.94) [0.50,4.50]
Total: 83573 W: 18584 L: 18335 D: 46654
http://tests.stockfishchess.org/tests/view/5d84e44d0ebc5971531d4f94

LTC:
LLR: -2.96 (-2.94,2.94) [0.00,3.50]
Total: 92252 W: 15240 L: 15160 D: 61852
http://tests.stockfishchess.org/tests/view/5d865dd90ebc5971531d68e1

VLTC: 120+1.2 @ 2th
LLR: 2.96 (-2.94,2.94) [0.00,3.50]
Total: 51902 W: 7323 L: 7028 D: 37551
http://tests.stockfishchess.org/tests/view/5d8763620ebc595f57c22b15

Closes #2321

Bench: 3441237
  • Loading branch information
vondele authored and snicolet committed Sep 23, 2019
1 parent 7e4c325 commit 770c8d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.cpp
Expand Up @@ -762,6 +762,9 @@ namespace {
if (eval == VALUE_NONE)
ss->staticEval = eval = evaluate(pos);

if (eval == VALUE_DRAW)
eval = value_draw(depth, thisThread);

// Can ttValue be used as a better position evaluation?
if ( ttValue != VALUE_NONE
&& (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER)))
Expand Down

0 comments on commit 770c8d9

Please sign in to comment.