X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.h;h=114e24d5ff330d6906e0c4330d15addaa5c384e2;hp=18c0f944892b96830a58af30373f0ba59952e6a2;hb=fd5d6c53402517cf8277641a8e37af153b7540c5;hpb=b5d5646c840d63710552fdaf2521a054dd3b8a18 diff --git a/src/material.h b/src/material.h index 18c0f944..114e24d5 100644 --- a/src/material.h +++ b/src/material.h @@ -27,6 +27,13 @@ const int MaterialTableSize = 8192; +/// Game phase +enum Phase { + PHASE_ENDGAME = 0, + PHASE_MIDGAME = 128 +}; + + /// MaterialInfo is a class which contains various information about a /// material configuration. It contains a material balance evaluation, /// a function pointer to a special endgame evaluation function (which in @@ -65,8 +72,8 @@ private: class MaterialInfoTable : public SimpleHash { public: - MaterialInfoTable(); ~MaterialInfoTable(); + void init(); MaterialInfo* get_material_info(const Position& pos) const; static Phase game_phase(const Position& pos);