X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.h;h=89f8f55685d0979b1cf6f07d748e897ee9df6c08;hp=ba6ad1ea301c386ca30f3d445a0b4a52cdc8539d;hb=e304db9d1ecf6a2318708483c90fadecf4fac4ee;hpb=6b909b2343190f2989d21c8f69f40e9f09c530c0 diff --git a/src/material.h b/src/material.h index ba6ad1ea..89f8f556 100644 --- a/src/material.h +++ b/src/material.h @@ -52,9 +52,9 @@ public: private: Key key; int16_t value; - uint8_t factor[2]; + uint8_t factor[COLOR_NB]; EndgameBase* evaluationFunction; - EndgameBase* scalingFunction[2]; + EndgameBase* scalingFunction[COLOR_NB]; int spaceWeight; Phase gamePhase; }; @@ -67,7 +67,7 @@ struct MaterialTable { MaterialEntry* probe(const Position& pos); static Phase game_phase(const Position& pos); - template static int imbalance(const int pieceCount[][8]); + template static int imbalance(const int pieceCount[][PIECE_TYPE_NB]); HashTable entries; Endgames endgames;