X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=72ec79e71f3e95539d0b05776147d3d51a040d41;hp=eb3fc82a40862c24ec907b8bdd53c6d98a34ca08;hb=bbd69c0260a12cedf2b4d32b9ec3d478270533ce;hpb=708cb311a040ca8c676524025c9d72ed4c632267;ds=sidebyside diff --git a/src/search.cpp b/src/search.cpp index eb3fc82a..72ec79e7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -185,8 +185,7 @@ void Search::think() { RootColor = RootPos.side_to_move(); TimeMgr.init(Limits, RootPos.game_ply(), RootColor); - // Dynamic draw value: try to avoid repetition draws at early midgame - int cf = std::max(70 - RootPos.game_ply(), 0); + int cf = Options["Contempt Factor"] * PawnValueMg / 100; // From centipawns DrawValue[ RootColor] = VALUE_DRAW - Value(cf); DrawValue[~RootColor] = VALUE_DRAW + Value(cf);