]> git.sesse.net Git - stockfish/blobdiff - src/position.h
More use of memset() in Position::clear()
[stockfish] / src / position.h
index 2e27501c2469f4b862a77467f5a5bcfa7eaf9ba7..0a1576d4308efafefe580bdc6ecbac4c687cec1a 100644 (file)
@@ -310,11 +310,9 @@ private:
   void allow_ooo(Color c);
 
   // Helper functions for doing and undoing moves
-  void do_capture_move(PieceType capture, Color them, Square to, bool ep);
+  void do_capture_move(Bitboard& key, PieceType capture, Color them, Square to, bool ep);
   void do_castle_move(Move m);
   void undo_castle_move(Move m);
-  void undo_promotion_move(Move m);
-  void undo_ep_move(Move m);
   void find_checkers();
 
   template<PieceType Piece>
@@ -344,7 +342,7 @@ private:
 
   // Piece lists
   Square pieceList[2][8][16]; // [color][pieceType][index]
-  int index[64];
+  int index[64]; // [square]
 
   // Other info
   Square kingSquare[2];