mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Use a set to store SearchMoves
We just need to verify if a legal move is among the SearchMoves, so we don't need a vector for this. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -201,7 +201,7 @@ namespace {
|
||||
|
||||
string token;
|
||||
Search::LimitsType limits;
|
||||
std::vector<Move> searchMoves;
|
||||
std::set<Move> searchMoves;
|
||||
int time[] = { 0, 0 }, inc[] = { 0, 0 };
|
||||
|
||||
while (is >> token)
|
||||
@@ -228,7 +228,7 @@ namespace {
|
||||
is >> limits.maxTime;
|
||||
else if (token == "searchmoves")
|
||||
while (is >> token)
|
||||
searchMoves.push_back(move_from_uci(pos, token));
|
||||
searchMoves.insert(move_from_uci(pos, token));
|
||||
}
|
||||
|
||||
limits.time = time[pos.side_to_move()];
|
||||
|
||||
Reference in New Issue
Block a user