From d8b3ad2208328e2ed35c34c450b539918ee5c87e Mon Sep 17 00:00:00 2001 From: Stefan Geschwentner Date: Sat, 24 Jan 2015 22:05:06 +0100 Subject: [PATCH] Fix a skill level problem: Don't allow move pruning at root node Bench: 8918745 Resolves #231 --- src/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2