]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Print the move in addition to position
[stockfish] / src / position.h
index a47098a8d61d200284bf0ab6dc0632cc73871594..6076a53905251d832d36e3b1868bc7146cec6a8d 100644 (file)
@@ -117,6 +117,7 @@ struct UndoInfo {
 class Position {
 
   friend class MaterialInfo;
+  friend class EndgameFunctions;
 
 public:
   // Constructors
@@ -127,7 +128,7 @@ public:
   // Text input/output
   void from_fen(const std::string &fen);
   const std::string to_fen() const;
-  void print() const;
+  void print(Move m = MOVE_NONE) const;
 
   // Copying
   void copy(const Position &pos);
@@ -297,6 +298,7 @@ private:
   void allow_ooo(Color c);
 
   // Helper functions for doing and undoing moves
+  void do_capture_move(Move m, PieceType capture, Color them, Square to);
   void do_castle_move(Move m);
   void do_promotion_move(Move m, UndoInfo &u);
   void do_ep_move(Move m);