X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=c5e029401ff34c2edfc78ef4e8dd3bf0e494cd12;hp=05a02f158948e73513b33e62e24ef095377c3e4e;hb=de1dc4f2de7d22c9ea1b33b9caee276651ef7c6d;hpb=a6e0f62a4f83bf4303e920d5f689de7cbc0467e8 diff --git a/src/position.cpp b/src/position.cpp index 05a02f15..c5e02940 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -46,11 +46,16 @@ Value PieceValue[PHASE_NB][PIECE_NB] = { { VALUE_ZERO, PawnValueMg, KnightValueMg, BishopValueMg, RookValueMg, QueenValueMg }, { VALUE_ZERO, PawnValueEg, KnightValueEg, BishopValueEg, RookValueEg, QueenValueEg } }; -Key Zobrist::psq[COLOR_NB][PIECE_TYPE_NB][SQUARE_NB]; -Key Zobrist::enpassant[FILE_NB]; -Key Zobrist::castle[CASTLE_RIGHT_NB]; -Key Zobrist::side; -Key Zobrist::exclusion; +namespace Zobrist { + + Key psq[COLOR_NB][PIECE_TYPE_NB][SQUARE_NB]; + Key enpassant[FILE_NB]; + Key castle[CASTLE_RIGHT_NB]; + Key side; + Key exclusion; +} + +Key Position::exclusion_key() const { return st->key ^ Zobrist::exclusion;} namespace {