]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Space inflate movepick.cpp
[stockfish] / src / movepick.h
index df2012fe6fa0b67bbe2ade133744d39ab4b8b6e7..ab1c0ade8c65e987664236b9e77eb9d1da5dbf6f 100644 (file)
@@ -94,6 +94,15 @@ private:
 //// Inline functions
 ////
 
+/// MovePicker::number_of_moves() simply returns the numOfMoves member
+/// variable. It is intended to be used in positions where the side to move
+/// is in check, for detecting checkmates or situations where there is only
+/// a single reply to check.
+
+inline int MovePicker::number_of_moves() const {
+  return numOfMoves;
+}
+
 /// MovePicker::discovered_check_candidates() returns a bitboard containing
 /// all pieces which can possibly give discovered check.  This bitboard is
 /// computed by the constructor function.