mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Assorted tweaks from DON
Mainly renames and some little code style improvment, inspired by looking at DON sources: https://github.com/erashid/DON No functional change.
This commit is contained in:
@@ -154,10 +154,10 @@ void Search::init() {
|
||||
/// Search::perft() is our utility to verify move generation. All the leaf nodes
|
||||
/// up to the given depth are generated and counted and the sum returned.
|
||||
|
||||
static size_t perft(Position& pos, Depth depth) {
|
||||
static uint64_t perft(Position& pos, Depth depth) {
|
||||
|
||||
StateInfo st;
|
||||
size_t cnt = 0;
|
||||
uint64_t cnt = 0;
|
||||
CheckInfo ci(pos);
|
||||
const bool leaf = depth == 2 * ONE_PLY;
|
||||
|
||||
@@ -170,7 +170,7 @@ static size_t perft(Position& pos, Depth depth) {
|
||||
return cnt;
|
||||
}
|
||||
|
||||
size_t Search::perft(Position& pos, Depth depth) {
|
||||
uint64_t Search::perft(Position& pos, Depth depth) {
|
||||
return depth > ONE_PLY ? ::perft(pos, depth) : MoveList<LEGAL>(pos).size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user