Skip to content

Commit d8b3ad2

Browse files
locutus2zamar
authored andcommitted
Fix a skill level problem: Don't allow move pruning at root node
Bench: 8918745 Resolves #231
1 parent ec36b8d commit d8b3ad2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,8 @@ namespace {
831831
newDepth = depth - ONE_PLY + extension;
832832

833833
// Step 13. Pruning at shallow depth
834-
if ( !captureOrPromotion
834+
if ( !RootNode
835+
&& !captureOrPromotion
835836
&& !inCheck
836837
&& !dangerous
837838
&& bestValue > VALUE_MATED_IN_MAX_PLY)

0 commit comments

Comments
 (0)