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:
Marco Costalba
2010-01-25 12:04:00 +01:00
parent b1ac6c69a0
commit 84ec1f7331
4 changed files with 44 additions and 29 deletions

View File

@@ -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);