mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 15:46:24 +08:00
Retire RootMoveList
Diretcly use the underlying std::vector<Move> and the STL algorithms. Also a bit of cleanup while there. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -59,7 +59,6 @@ static const char* Defaults[] = {
|
||||
|
||||
void benchmark(int argc, char* argv[]) {
|
||||
|
||||
vector<Move> searchMoves(1, MOVE_NONE);
|
||||
vector<string> fenList;
|
||||
Search::LimitsType limits;
|
||||
int64_t totalNodes;
|
||||
@@ -127,7 +126,7 @@ void benchmark(int argc, char* argv[]) {
|
||||
}
|
||||
else
|
||||
{
|
||||
Threads.start_thinking(pos, limits, searchMoves, false);
|
||||
Threads.start_thinking(pos, limits, vector<Move>(), false);
|
||||
totalNodes += Search::RootPosition.nodes_searched();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user