From 057c3d60cd1037c6c54ae86414d9282bfc8a9afa Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 27 Apr 2014 09:23:45 +0200 Subject: [PATCH 1/1] Move game phase constants to enum Value No functional change. --- src/material.cpp | 4 ---- src/types.h | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) 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 { -- 2.39.2