X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=33f3937738db900bb0c1ada00af6140c650e19c0;hb=67535711e8d86a975ff9aac9c2d2fdad24ec5915;hp=20c56ad3819b5417c6ae482750334a1e0a475d60;hpb=aaad48464bc8a269634de371238826d09a6e240d;p=stockfish diff --git a/src/position.h b/src/position.h index 20c56ad3..33f39377 100644 --- a/src/position.h +++ b/src/position.h @@ -122,11 +122,11 @@ class Position { public: // Constructors Position() {}; - Position(const Position &pos); - Position(const std::string &fen); + Position(const Position& pos); + Position(const std::string& fen); // Text input/output - void from_fen(const std::string &fen); + void from_fen(const std::string& fen); const std::string to_fen() const; void print(Move m = MOVE_NONE) const; @@ -268,7 +268,7 @@ public: Value mg_pst_delta(Move m) const; // Game termination checks - bool is_mate(); + bool is_mate() const; bool is_draw() const; // Check if one side threatens a mate in one