X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=d419cd30ede15e192142b040de9caf14d8b8005c;hp=152e9fd68c4812854d0ce3d098581586fb56102f;hb=ee0371f86e319aa24bc1d32f02d9495eea79aa72;hpb=eaeb63f1d03aa71edf719605a31d121bf086a03d diff --git a/src/search.cpp b/src/search.cpp index 152e9fd6..d419cd30 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -181,15 +181,15 @@ void Search::init() { } -/// Search::reset() clears all search memory, to restore a deterministic state +/// Search::reset() clears all search memory, to obtain reproducible search results void Search::reset () { - TT.clear(); - History.clear(); - CounterMovesHistory.clear(); - Gains.clear(); - Countermoves.clear(); + TT.clear(); + History.clear(); + CounterMovesHistory.clear(); + Gains.clear(); + Countermoves.clear(); } @@ -858,7 +858,7 @@ moves_loop: // When in check and at SpNode search starts from here captureOrPromotion = pos.capture_or_promotion(move); givesCheck = type_of(move) == NORMAL && !ci.dcCandidates - ? ci.checkSq[type_of(pos.piece_on(from_sq(move)))] & to_sq(move) + ? ci.checkSquares[type_of(pos.piece_on(from_sq(move)))] & to_sq(move) : pos.gives_check(move, ci); dangerous = givesCheck @@ -1281,7 +1281,7 @@ moves_loop: // When in check and at SpNode search starts from here assert(is_ok(move)); givesCheck = type_of(move) == NORMAL && !ci.dcCandidates - ? ci.checkSq[type_of(pos.piece_on(from_sq(move)))] & to_sq(move) + ? ci.checkSquares[type_of(pos.piece_on(from_sq(move)))] & to_sq(move) : pos.gives_check(move, ci); // Futility pruning