Skip to content

Commit

Permalink
less dynamic contempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tryingsomestuff committed May 30, 2020
1 parent a88bd04 commit 0901da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/searcherDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ PVList Searcher::search(const Position & p, Move & m, DepthType & d, ScoreType &
#else
contempt = 0;
#endif

// dynamic contempt ///@todo tune this
contempt += ScoreType(std::round(50*std::tanh(bestScore/300.f)));
contempt += ScoreType(std::round(25*std::tanh(bestScore/400.f)));
Logging::LogIt(Logging::logInfo) << "Dynamic contempt " << contempt;

DepthType windowDepth = depth;
Expand Down

0 comments on commit 0901da1

Please sign in to comment.