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:
Marco Costalba
2014-02-09 17:31:45 +01:00
parent 2f5aaf7de6
commit 41641e3b1e
16 changed files with 87 additions and 88 deletions

View File

@@ -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();
}