mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user