#include "position.h"
#include "types.h"
-struct SplitPoint;
-
namespace Search {
/// Stack struct keeps track of the information we need to remember from nodes
/// its own array of Stack objects, indexed by the current ply.
struct Stack {
- SplitPoint* splitPoint;
Move* pv;
int ply;
Move currentMove;
/// typically in an async fashion e.g. to stop the search by the GUI.
struct SignalsType {
- std::atomic<bool> stop, stopOnPonderhit, firstRootMove, failedLowAtRoot;
+ std::atomic_bool stop, stopOnPonderhit, firstRootMove, failedLowAtRoot;
};
typedef std::unique_ptr<std::stack<StateInfo>> StateStackPtr;
extern StateStackPtr SetupStates;
void init();
-void reset();
-template<bool Root> uint64_t perft(Position& pos, Depth depth);
+void clear();
+template<bool Root = true> uint64_t perft(Position& pos, Depth depth);
} // namespace Search