]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Retire ksq from CheckInfo
[stockfish] / src / position.h
index 6307f126a4a613652c1f76ebef662f01babad9f7..84602552e8d8b5085db22883891b42d2b9a9d097 100644 (file)
@@ -41,8 +41,8 @@ struct CheckInfo {
     explicit CheckInfo(const Position&);
 
     Bitboard dcCandidates;
+    Bitboard pinned;
     Bitboard checkSq[8];
-    Square ksq;
 };
 
 /// Castle rights, encoded as bit fields
@@ -187,7 +187,6 @@ public:
   // Properties of moves
   bool pl_move_is_legal(Move m, Bitboard pinned) const;
   bool move_is_pl(const Move m) const;
-  bool move_gives_check(Move m) const;
   bool move_gives_check(Move m, const CheckInfo& ci) const;
   bool move_is_capture(Move m) const;
   bool move_is_passed_pawn_push(Move m) const;