X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=4b08e1b46d35c07e95bd65cf547e459f1bdbe86e;hp=7906eb7535631c2bcb8ea6c5398eb82d8e37ed02;hb=3e0753bef36e5efeed700d7277187f6fbd7275f5;hpb=c7843f2f79c23144842b462c7dee7da2615b12ed diff --git a/src/movepick.cpp b/src/movepick.cpp index 7906eb75..4b08e1b4 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -63,10 +63,8 @@ namespace { /// search captures, promotions and some checks) and about how important good /// move ordering is at the current node. -MovePicker::MovePicker(const Position& p, bool pv, Move ttm, Depth d, +MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, SearchStack* ss) : pos(p), H(h) { - - pvNode = pv; ttMove = ttm; if (ss) { @@ -76,17 +74,14 @@ MovePicker::MovePicker(const Position& p, bool pv, Move ttm, Depth d, } else mateKiller = killer1 = killer2 = MOVE_NONE; - depth = d; - movesPicked = 0; - numOfMoves = 0; - numOfBadCaptures = 0; - checkKillers = checkLegal = false; + movesPicked = numOfMoves = numOfBadCaptures = 0; + checkKillers = checkLegal = finished = false; if (p.is_check()) phaseIndex = EvasionsPhaseIndex; - else if (depth > Depth(0)) + else if (d > Depth(0)) phaseIndex = MainSearchPhaseIndex; - else if (depth == Depth(0)) + else if (d == Depth(0)) phaseIndex = QsearchWithChecksPhaseIndex; else phaseIndex = QsearchWithoutChecksPhaseIndex;