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:
Marco Costalba
2014-08-08 10:59:28 +02:00
committed by lucasart
parent 2efeded6e3
commit a67c22611a
3 changed files with 20 additions and 20 deletions

View File

@@ -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