mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +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:
@@ -21,6 +21,7 @@
|
||||
#define THREAD_H_INCLUDED
|
||||
|
||||
#include <cstring>
|
||||
#include <set>
|
||||
|
||||
#include "lock.h"
|
||||
#include "material.h"
|
||||
@@ -120,7 +121,7 @@ public:
|
||||
void wait_for_stop_or_ponderhit();
|
||||
void stop_thinking();
|
||||
void start_thinking(const Position& pos, const Search::LimitsType& limits,
|
||||
const std::vector<Move>& searchMoves, bool asyncMode);
|
||||
const std::set<Move>& searchMoves, bool asyncMode);
|
||||
|
||||
template <bool Fake>
|
||||
Value split(Position& pos, Search::Stack* ss, Value alpha, Value beta, Value bestValue,
|
||||
|
||||
Reference in New Issue
Block a user