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))