X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpsqtab.h;h=f56ba9ccf168c8eab34d63bcd9a4c8daef84e90a;hp=fe76fd03cd6d00897758b4c61abc02c3884ff9bc;hb=6056a434191e97e61ff8657a50a1f645ca8dfb79;hpb=21de03fad7f70c90d883d21d27983a5fe15f2c49 diff --git a/src/psqtab.h b/src/psqtab.h index fe76fd03..f56ba9cc 100644 --- a/src/psqtab.h +++ b/src/psqtab.h @@ -17,28 +17,30 @@ along with this program. If not, see . */ - #if !defined(PSQTAB_H_INCLUDED) #define PSQTAB_H_INCLUDED -//// -//// Includes -//// - -#include "value.h" +#include "types.h" +namespace { //// //// Constants modified by Joona Kiiski //// -static const Value MP = PawnValueMidgame; -static const Value MK = KnightValueMidgame; -static const Value MB = BishopValueMidgame; -static const Value MR = RookValueMidgame; -static const Value MQ = QueenValueMidgame; +const Value MP = PawnValueMidgame; +const Value MK = KnightValueMidgame; +const Value MB = BishopValueMidgame; +const Value MR = RookValueMidgame; +const Value MQ = QueenValueMidgame; + +const Value EP = PawnValueEndgame; +const Value EK = KnightValueEndgame; +const Value EB = BishopValueEndgame; +const Value ER = RookValueEndgame; +const Value EQ = QueenValueEndgame; -static const int MgPST[][64] = { +const int MgPST[][64] = { { }, {// Pawn // A B C D E F G H @@ -108,13 +110,7 @@ static const int MgPST[][64] = { } }; -static const Value EP = PawnValueEndgame; -static const Value EK = KnightValueEndgame; -static const Value EB = BishopValueEndgame; -static const Value ER = RookValueEndgame; -static const Value EQ = QueenValueEndgame; - -static const int EgPST[][64] = { +const int EgPST[][64] = { { }, {// Pawn // A B C D E F G H @@ -184,5 +180,6 @@ static const int EgPST[][64] = { } }; +} // namespace #endif // !defined(PSQTAB_H_INCLUDED)