Skip to content

Commit

Permalink
Reset DrawValue[] before new search
Browse files Browse the repository at this point in the history
Spotted by Ronald de Man

bench: 7384368
  • Loading branch information
mcostalba committed Apr 21, 2014
1 parent ef43e6b commit 56273fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ void Search::think() {
RootColor = RootPos.side_to_move();
TimeMgr.init(Limits, RootPos.game_ply(), RootColor);

DrawValue[0] = DrawValue[1] = VALUE_DRAW;
Contempt[0] = Options["Contempt Factor"] * PawnValueEg / 100; // From centipawns
Contempt[1] = (Options["Contempt Factor"] + 12) * PawnValueEg / 100;

Expand Down

0 comments on commit 56273fc

Please sign in to comment.