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:
Marco Costalba
2011-12-12 17:55:20 +01:00
parent 7d97ebfe7f
commit 4e59c5c274
5 changed files with 104 additions and 139 deletions

View File

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