]> git.sesse.net Git - stockfish/commitdiff
Fix a skill level problem: Don't allow move pruning at root node
authorStefan Geschwentner <stgeschwentner@gmail.com>
Sat, 24 Jan 2015 21:05:06 +0000 (22:05 +0100)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 25 Jan 2015 21:57:13 +0000 (21:57 +0000)
Bench: 8918745

Resolves #231

src/search.cpp

index da306a1a6150a487b3f6a734375e12023fd55862..0ce836f777797ac0d4b785cad8a911261a8c064c 100644 (file)
@@ -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)