X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=794fbde9b83366eb33e074e7b0b7fa921a5e4625;hp=ba99df0d1262fd7edffe0f03d0f68240d47c03bc;hb=e82382703c96cfc480555e9db29d999e1f54a38f;hpb=3b49aeb4f22569c2b5d5ca830858c4dd584fae7f diff --git a/src/movepick.cpp b/src/movepick.cpp index ba99df0d..794fbde9 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -68,7 +68,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, endBadCaptures = moves + MAX_MOVES - 1; ss = s; - if (p.in_check()) + if (p.checkers()) phase = EVASION; else @@ -96,7 +96,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, assert(d <= DEPTH_ZERO); - if (p.in_check()) + if (p.checkers()) phase = EVASION; else if (d > DEPTH_QS_NO_CHECKS) @@ -126,7 +126,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, MovePicker::MovePicker(const Position& p, Move ttm, const History& h, PieceType pt) : pos(p), H(h), cur(moves), end(moves) { - assert(!pos.in_check()); + assert(!pos.checkers()); phase = PROBCUT;