From: Fabian Fichter Date: Mon, 21 Aug 2023 18:59:29 +0000 (+0200) Subject: Simplify pawn usage check X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e7ae4bdb0fa48f123dc6853d2d83da9235894b7c;p=fairystockfish.git Simplify pawn usage check --- diff --git a/src/search.cpp b/src/search.cpp index fc7c4f8..38d72f5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -936,7 +936,7 @@ namespace { && (ss-1)->statScore < 23767 && eval >= beta && eval >= ss->staticEval - && ss->staticEval >= beta - 20 * depth - 22 * improving + 168 * ss->ttPv + 159 + 200 * (!pos.double_step_region(pos.side_to_move()) && pos.piece_to_char()[PAWN] != ' ') + && ss->staticEval >= beta - 20 * depth - 22 * improving + 168 * ss->ttPv + 159 + 200 * (!pos.double_step_region(pos.side_to_move()) && (pos.piece_types() & PAWN)) && !excludedMove && pos.non_pawn_material(us) && pos.count(~us) != pos.count(~us)