Skip to content

Commit

Permalink
Fix a skill level problem: Don't allow move pruning at root node
Browse files Browse the repository at this point in the history
Bench: 8918745

Resolves #231
  • Loading branch information
locutus2 authored and zamar committed Jan 25, 2015
1 parent ec36b8d commit d8b3ad2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.cpp
Expand Up @@ -831,7 +831,8 @@ namespace {
newDepth = depth - ONE_PLY + extension;

// Step 13. Pruning at shallow depth
if ( !captureOrPromotion
if ( !RootNode
&& !captureOrPromotion
&& !inCheck
&& !dangerous
&& bestValue > VALUE_MATED_IN_MAX_PLY)
Expand Down

0 comments on commit d8b3ad2

Please sign in to comment.