From: Marco Costalba Date: Sun, 27 Apr 2014 07:23:45 +0000 (+0200) Subject: Move game phase constants to enum Value X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=057c3d60cd1037c6c54ae86414d9282bfc8a9afa;hp=cb4ac4221e8a178294c084670eff3fa0414135a8;ds=sidebyside Move game phase constants to enum Value No functional change. --- diff --git a/src/material.cpp b/src/material.cpp index 2f6af13f..b8b6233c 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -27,10 +27,6 @@ using namespace std; namespace { - // Values modified by Joona Kiiski - const Value MidgameLimit = Value(15581); - const Value EndgameLimit = Value(3998); - // Polynomial material balance parameters // pair pawn knight bishop rook queen diff --git a/src/types.h b/src/types.h index ad72087a..02b651dd 100644 --- a/src/types.h +++ b/src/types.h @@ -191,7 +191,9 @@ enum Value { KnightValueMg = 817, KnightValueEg = 846, BishopValueMg = 836, BishopValueEg = 857, RookValueMg = 1270, RookValueEg = 1278, - QueenValueMg = 2521, QueenValueEg = 2558 + QueenValueMg = 2521, QueenValueEg = 2558, + + MidgameLimit = 15581, EndgameLimit = 3998 }; enum PieceType {