X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=7418b0d325a55ce87bd27d6d42727d51434472c1;hp=ed25c090867ed5d1e3217e18f9f00706638ef32e;hb=7c8b7222f5eea024ab480abb2d9289fd1e42da9c;hpb=ec9038b7b4cb2701c3a3b8be56632e7f08e461ac diff --git a/src/position.h b/src/position.h index ed25c090..7418b0d3 100644 --- a/src/position.h +++ b/src/position.h @@ -189,9 +189,6 @@ public: bool pos_is_ok(int* failedStep = NULL) const; void flip(); - // Global initialization - static void init(); - private: // Initialization helpers (used while setting up a position) void clear(); @@ -230,14 +227,6 @@ private: Thread* thisThread; StateInfo* st; int chess960; - - // Static variables - static Score pieceSquareTable[16][64]; // [piece][square] - static Key zobrist[2][8][64]; // [color][pieceType][square]/[piece count] - static Key zobEp[8]; // [file] - static Key zobCastle[16]; // [castleRight] - static Key zobSideToMove; - static Key zobExclusion; }; inline int64_t Position::nodes_searched() const { @@ -366,7 +355,7 @@ inline Key Position::key() const { } inline Key Position::exclusion_key() const { - return st->key ^ zobExclusion; + return st->key ^ Zobrist::exclusion; } inline Key Position::pawn_key() const {