X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.h;h=067baa3cf2e0c717f98a3f136f6f13ece186a6bf;hp=2531182af244a95fe55cba173cbb5762b6568b63;hb=d8e5b8c133be7e49b47236a83f82e0cd6290c20c;hpb=d3c4618b3ac0e444ce3b9dd894b87f86a50863c5 diff --git a/src/evaluate.h b/src/evaluate.h index 2531182a..067baa3c 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -25,6 +25,8 @@ //// Includes //// +#include + #include "material.h" #include "pawns.h" @@ -45,8 +47,10 @@ class Position; struct EvalInfo { + EvalInfo() { futilityMargin[0] = futilityMargin[1] = Value(0); } + // Middle game and endgame evaluations - Value mgValue, egValue; + Score value; // Pointers to material and pawn hash table entries MaterialInfo* mi; @@ -89,11 +93,11 @@ struct EvalInfo { Move mateThreat[2]; // Middle game and endgame mobility scores. - Value mgMobility, egMobility; + Score mobility; // Extra futility margin. This is added to the standard futility margin - // in the quiescence search. - Value futilityMargin; + // in the quiescence search. One for each color. + Value futilityMargin[2]; }; @@ -102,7 +106,6 @@ struct EvalInfo { //// extern Value evaluate(const Position& pos, EvalInfo& ei, int threadID); -extern Value quick_evaluate(const Position& pos); extern void init_eval(int threads); extern void quit_eval(); extern void read_weights(Color sideToMove);