X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=d67b2eea63a411bcda7fccfdc55ec26b2438ea97;hp=a9aa514c97ab21caf63c0a9355643c0d136148a4;hb=7c8b7222f5eea024ab480abb2d9289fd1e42da9c;hpb=ec9038b7b4cb2701c3a3b8be56632e7f08e461ac diff --git a/src/types.h b/src/types.h index a9aa514c..d67b2eea 100644 --- a/src/types.h +++ b/src/types.h @@ -321,9 +321,21 @@ inline Score apply_weight(Score v, Score w) { #undef ENABLE_OPERATORS_ON #undef ENABLE_SAFE_OPERATORS_ON +namespace Zobrist { + + extern Key psq[2][8][64]; // [color][pieceType][square]/[piece count] + extern Key enpassant[8]; // [file] + extern Key castle[16]; // [castleRight] + extern Key side; + extern Key exclusion; + + void init(); +} + +extern Score pieceSquareTable[16][64]; +extern int SquareDistance[64][64]; extern const Value PieceValueMidgame[17]; // Indexed by Piece or PieceType extern const Value PieceValueEndgame[17]; -extern int SquareDistance[64][64]; struct MoveStack { Move move;