From: Stefan Geschwentner Date: Sat, 24 Jan 2015 21:05:06 +0000 (+0100) Subject: Fix a skill level problem: Don't allow move pruning at root node X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d8b3ad2208328e2ed35c34c450b539918ee5c87e Fix a skill level problem: Don't allow move pruning at root node Bench: 8918745 Resolves #231 --- diff --git a/src/search.cpp b/src/search.cpp index da306a1a..0ce836f7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -831,7 +831,8 @@ moves_loop: // When in check and at SpNode search starts from here newDepth = depth - ONE_PLY + extension; // Step 13. Pruning at shallow depth - if ( !captureOrPromotion + if ( !RootNode + && !captureOrPromotion && !inCheck && !dangerous && bestValue > VALUE_MATED_IN_MAX_PLY)