X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=743acf33ae8beee115c744a4c2effcd7988a7f7f;hp=5910e439650680770a222e0ac8f2c1f5c6e9ebe2;hb=c172af1b6181b39288870689f912143c04a4040a;hpb=038235ba3541087e2db969a0a4bdfd5fc2a42b44 diff --git a/src/position.h b/src/position.h index 5910e439..743acf33 100644 --- a/src/position.h +++ b/src/position.h @@ -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); @@ -173,13 +174,13 @@ public: // Number of pieces of each color and type int piece_count(Color c, PieceType pt) const; - // The en passant square: + // The en passant square Square ep_square() const; // Current king position for each color Square king_square(Color c) const; - // Castling rights. + // Castling rights bool can_castle_kingside(Color c) const; bool can_castle_queenside(Color c) const; bool can_castle(Color c) const;