Store moves sent with "position" UCI command

Store all the game moves until current position.

This will be used by next patch.

No functional change.
This commit is contained in:
Marco Costalba
2013-03-02 13:03:56 +01:00
parent 0e1ad3ad33
commit 0d68b523a3
6 changed files with 16 additions and 7 deletions

View File

@@ -93,6 +93,7 @@ struct SignalsType {
};
typedef std::auto_ptr<std::stack<StateInfo> > StateStackPtr;
typedef std::auto_ptr<std::vector<Move> > MovesVectPtr;
extern volatile SignalsType Signals;
extern LimitsType Limits;
@@ -101,6 +102,7 @@ extern Position RootPos;
extern Color RootColor;
extern Time::point SearchTime;
extern StateStackPtr SetupStates;
extern MovesVectPtr SetupMoves;
extern void init();
extern size_t perft(Position& pos, Depth depth);