mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Better document how Position c'tor works
Renamed a bit the functions to be more clear what we actually are doing when we craete a Position object and explained how StateInfo works. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -146,7 +146,7 @@ public:
|
||||
};
|
||||
|
||||
// Constructors
|
||||
Position() {}
|
||||
Position();
|
||||
Position(const Position& pos);
|
||||
Position(const std::string& fen);
|
||||
|
||||
@@ -156,7 +156,7 @@ public:
|
||||
void print(Move m = MOVE_NONE) const;
|
||||
|
||||
// Copying
|
||||
void copy(const Position& pos);
|
||||
void fast_copy(const Position& pos);
|
||||
void flipped_copy(const Position& pos);
|
||||
|
||||
// The piece on a given square
|
||||
@@ -234,7 +234,7 @@ public:
|
||||
bool square_is_weak(Square s, Color c) const;
|
||||
|
||||
// Doing and undoing moves
|
||||
void saveState();
|
||||
void detach();
|
||||
void do_move(Move m, StateInfo& st);
|
||||
void do_move(Move m, StateInfo& st, const CheckInfo& ci, bool moveIsCheck);
|
||||
void undo_move(Move m);
|
||||
|
||||
Reference in New Issue
Block a user