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