X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=fdfacc10b910f71d0a7a802afd8f0d8d33efda46;hp=b5b51d2cdc6ddecd295b0d1474b683436bbe1a82;hb=c9f9262a499131ed169035f0faa943fed3ece153;hpb=bd7a0d4ce4945b3bde229fce9e3c886152a48d79 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b5b51d2c..fdfacc10 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -268,6 +268,7 @@ namespace { namespace Eval { Color RootColor; + Value ValueDrawContempt; /// evaluate() is the main evaluation function. It always computes two /// values, an endgame score and a middle game score, and interpolates @@ -307,6 +308,8 @@ namespace Eval { KingDangerTable[1][i] = apply_weight(make_score(t, 0), Weights[KingDangerUs]); KingDangerTable[0][i] = apply_weight(make_score(t, 0), Weights[KingDangerThem]); } + + ValueDrawContempt = VALUE_DRAW - Options["Contempt Factor"] * PawnValueMg / 100; }