mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Rework perft implementation
Unify various perft functions and move all the code to search.cpp. Avoid perft implementation to be splitted between benchmark.cpp (where it has no reason to be) and search.cpp No functional and no speed change (tested).
This commit is contained in:
@@ -105,8 +105,8 @@ extern Time::point SearchTime;
|
||||
extern StateStackPtr SetupStates;
|
||||
|
||||
extern void init();
|
||||
extern uint64_t perft(Position& pos, Depth depth);
|
||||
extern void think();
|
||||
template<bool Root> uint64_t perft(Position& pos, Depth depth);
|
||||
|
||||
} // namespace Search
|
||||
|
||||
|
||||
Reference in New Issue
Block a user