X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=11b9e2de13991e75fc2d94c28d5123dfded556dd;hp=aaed663b79209620a490d276bc6b86a34c879d2f;hb=f30aa83f8ad46a794e83f030fdab576371c8c825;hpb=1dc27f3232d21e3d43df21f99a1ee22b72bb8ba0 diff --git a/src/position.h b/src/position.h index aaed663b..11b9e2de 100644 --- a/src/position.h +++ b/src/position.h @@ -315,10 +315,13 @@ private: Key compute_material_key() const; // Computing incremental evaluation scores and material counts + enum GamePhase { + MidGame, + EndGame + }; Value mg_pst(Color c, PieceType pt, Square s) const; Value eg_pst(Color c, PieceType pt, Square s) const; - Value compute_mg_value() const; - Value compute_eg_value() const; + Value compute_value(GamePhase p) const; Value compute_non_pawn_material(Color c) const; // Bitboards