mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Don't need to expose namespace Zobrist
It can be local to position.cpp No functional change.
This commit is contained in:
+10
-5
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user