]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Extend move_is_legal() to work also when in check
[stockfish] / src / position.h
index a55d1770fe59d225f550e97b11e75aaabd1c7ced..0e3c16c7f2dbac1d915fc28801f56ae8b623d645 100644 (file)
@@ -202,8 +202,8 @@ public:
   template<PieceType> Bitboard attacks_from(Square s, Color c) const;
 
   // Properties of moves
-  bool pl_move_is_legal(Move m) const;
   bool pl_move_is_legal(Move m, Bitboard pinned) const;
+  bool pl_move_is_evasion(Move m, Bitboard pinned) const;
   bool move_is_check(Move m) const;
   bool move_is_check(Move m, Bitboard dcCandidates) const;
   bool move_is_capture(Move m) const;
@@ -229,7 +229,7 @@ public:
   void undo_null_move();
 
   // Static exchange evaluation
-  int see(Square from, Square to, bool shortcut) const;
+  int see(Square from, Square to) const;
   int see(Move m) const;
   int see(Square to) const;
   int see_sign(Move m) const;