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

@@ -114,6 +114,7 @@ void benchmark(const Position& current, istream& is) {
int64_t nodes = 0;
Search::StateStackPtr st;
Search::MovesVectPtr mv;
Time::point elapsed = Time::now();
for (size_t i = 0; i < fens.size(); i++)
@@ -130,7 +131,7 @@ void benchmark(const Position& current, istream& is) {
}
else
{
Threads.start_thinking(pos, limits, vector<Move>(), st);
Threads.start_thinking(pos, limits, vector<Move>(), st, mv);
Threads.wait_for_think_finished();
nodes += Search::RootPos.nodes_searched();
}