Skip to content

Commit

Permalink
Revert dynamic draw value
Browse files Browse the repository at this point in the history
When tested with weaker engines did not
performed as expected, actually it was even
a regression from standard version.

bench: 8430785
  • Loading branch information
mcostalba committed Mar 3, 2014
1 parent 708cb31 commit bbd69c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit bbd69c0

Please sign in to comment.