]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Retire Position::set_castling_rights()
[stockfish] / src / position.h
index fd2222b4ec9360cf3c04e882d3324aa2ea23b444..d6c79ee181840553b6858c6dcfcf5416898db506 100644 (file)
@@ -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;