struct EvalInfo {
- EvalInfo() { kingDanger[0] = kingDanger[1] = Value(0); }
+ EvalInfo() { margin[WHITE] = margin[BLACK] = VALUE_ZERO; }
// Middle game and endgame evaluations
Score value;
// 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];
+ // Value of the score margin we should consider for the given color
+ Value margin[2];
};
//// 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);