X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovepick.cpp;h=636f4ba7987a90113c409bf0df35961a88574769;hb=dc0c441b7c5178baa1bb0cc51b2d0294f58759a4;hp=d8d0612a585e69ec98cb00ef43e220915f2b78ae;hpb=154e7afed0fe9c6f45a2aee8ef6f38d44076cb19;p=stockfish diff --git a/src/movepick.cpp b/src/movepick.cpp index d8d0612a..636f4ba7 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -139,8 +139,8 @@ void MovePicker::score() { : type_of(pos.moved_piece(m)) == ROOK && !(to_sq(m) & threatenedByMinor) ? 25000 : !(to_sq(m) & threatenedByPawn) ? 15000 : 0) - : 0); - + : 0) + + bool(pos.check_squares(type_of(pos.moved_piece(m))) & to_sq(m)) * 16384; else // Type == EVASIONS { if (pos.capture(m))