]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Use CheckInfo to store pinned bitboard
[stockfish] / src / position.h
index 6307f126a4a613652c1f76ebef662f01babad9f7..06ef6ab1f324868d11c01f727098e6728ac23a37 100644 (file)
@@ -41,6 +41,7 @@ struct CheckInfo {
     explicit CheckInfo(const Position&);
 
     Bitboard dcCandidates;
+    Bitboard pinned;
     Bitboard checkSq[8];
     Square ksq;
 };
@@ -187,7 +188,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;