X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=8be96e298ec17aa2936bb47c1150d79a02d518c2;hp=886ed52ca0bbf65f3fca476d4bffe12a650f44d2;hb=f4c27cda1a6874550fcbf6cf991b0b9abe43ff39;hpb=5ccff25df2e8fcbee3d4c1428bbc101afa88e700 diff --git a/src/search.cpp b/src/search.cpp index 886ed52c..8be96e29 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1134,6 +1134,12 @@ moves_loop: // When in check, search starts from here // Castling extension if (type_of(move) == CASTLING) extension = 1; + + // Late irreversible move extension + if ( move == ttMove + && pos.rule50_count() > 80 + && (captureOrPromotion || type_of(movedPiece) == PAWN)) + extension = 2; // Add extension to new depth newDepth += extension;