mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +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,7 +21,7 @@
|
||||
#define SEARCH_H_INCLUDED
|
||||
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include <set>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
@@ -70,7 +70,7 @@ struct SignalsType {
|
||||
|
||||
extern volatile SignalsType Signals;
|
||||
extern LimitsType Limits;
|
||||
extern std::vector<Move> SearchMoves;
|
||||
extern std::set<Move> SearchMoves;
|
||||
extern Position RootPosition;
|
||||
|
||||
extern void init();
|
||||
|
||||
Reference in New Issue
Block a user