X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=d6c79ee181840553b6858c6dcfcf5416898db506;hp=fd2222b4ec9360cf3c04e882d3324aa2ea23b444;hb=2fe4e10b0bf11e98f66185c04084e87a1341af02;hpb=23943208ecddf25869d564509e66dd2f15710b9d diff --git a/src/position.h b/src/position.h index fd2222b4..d6c79ee1 100644 --- a/src/position.h +++ b/src/position.h @@ -214,8 +214,7 @@ private: // Initialization helper functions (used while setting up a position) void clear(); void put_piece(Piece p, Square s); - void set_castle(int f, Square ksq, Square rsq); - void set_castling_rights(char token); + void set_castle_right(Square ksq, Square rsq); bool move_is_legal(const Move m) const; // Helper functions for doing and undoing moves @@ -263,7 +262,7 @@ private: // Static variables static Score pieceSquareTable[16][64]; // [piece][square] - static Key zobrist[2][8][64]; // [color][pieceType][square] + static Key zobrist[2][8][64]; // [color][pieceType][square]/[piece count] static Key zobEp[64]; // [square] static Key zobCastle[16]; // [castleRight] static Key zobSideToMove;