Revert dynamic draw value
authorMarco Costalba <mcostalba@gmail.com>
Mon, 3 Mar 2014 07:39:34 +0000 (08:39 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 3 Mar 2014 07:39:34 +0000 (08:39 +0100)
When tested with weaker engines did not
performed as expected, actually it was even
a regression from standard version.

bench: 8430785

src/search.cpp

index eb3fc82..72ec79e 100644 (file)
@@ -185,8 +185,7 @@ void Search::think() {
   RootColor = RootPos.side_to_move();
   TimeMgr.init(Limits, RootPos.game_ply(), RootColor);
 
   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);
 
   DrawValue[ RootColor] = VALUE_DRAW - Value(cf);
   DrawValue[~RootColor] = VALUE_DRAW + Value(cf);