X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpsqtab.h;h=2ae17cd1d23d749701f59b8c8849a8f68e55593b;hp=7b34258725a2d049ff384429fc7613987207fae9;hb=299bda9ea35418658d46e9ede62f9ec0384e3d37;hpb=d39ddb90775bcec7f3080002fc18c45f292d67b3 diff --git a/src/psqtab.h b/src/psqtab.h index 7b342587..2ae17cd1 100644 --- a/src/psqtab.h +++ b/src/psqtab.h @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2009 Marco Costalba + Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,18 +27,25 @@ #include "value.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; -static const int MgPST[][64] = { +const Value EP = PawnValueEndgame; +const Value EK = KnightValueEndgame; +const Value EB = BishopValueEndgame; +const Value ER = RookValueEndgame; +const Value EQ = QueenValueEndgame; + +const int MgPST[][64] = { { }, {// Pawn // A B C D E F G H @@ -108,13 +115,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 +185,6 @@ static const int EgPST[][64] = { } }; +} // namespace #endif // !defined(PSQTAB_H_INCLUDED)