diff --git a/src/search.cpp b/src/search.cpp index a9a62dbf..7fffae26 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -942,6 +942,12 @@ moves_loop: // When in check, search starts from here else if (type_of(move) == CASTLING) extension = ONE_PLY; + // Passed pawn extension + else if ( move == ss->killers[0] + && pos.advanced_pawn_push(move) + && pos.pawn_passed(us, to_sq(move))) + extension = ONE_PLY; + // Calculate new depth for this move newDepth = depth - ONE_PLY + extension;