X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.h;h=18362eaa8fdd76f7d0687c0acd85f26cce652af0;hb=d73eea3f719aaa2867917155bd41b10a04958658;hp=dcfa74e8f08638bd6a31c589465ca4b2a56e631f;hpb=e0e4bdc9918ac13d8a70058a9813349cb426936a;p=stockfish diff --git a/src/evaluate.h b/src/evaluate.h index dcfa74e8..18362eaa 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -47,7 +47,7 @@ class Position; struct EvalInfo { - EvalInfo() { kingDanger[0] = kingDanger[1] = Value(0); } + EvalInfo() { kingDanger[0] = kingDanger[1] = VALUE_ZERO; } // Middle game and endgame evaluations Score value; @@ -89,9 +89,6 @@ struct EvalInfo { // 2 to kingAdjacentZoneAttacksCount[BLACK]. int kingAdjacentZoneAttacksCount[2]; - // Middle game and endgame mobility scores - Score mobility; - // Value of the danger for the king of the given color Value kingDanger[2]; }; @@ -101,7 +98,7 @@ struct EvalInfo { //// Prototypes //// -extern Value evaluate(const Position& pos, EvalInfo& ei, int threadID); +extern Value evaluate(const Position& pos, EvalInfo& ei); extern void init_eval(int threads); extern void quit_eval(); extern void read_weights(Color sideToMove);