1
0
Fork 0

Fix a skill level problem: Don't allow move pruning at root node

Bench: 8918745

Resolves #231
pull/224/head
Stefan Geschwentner 2015-01-24 22:05:06 +01:00 committed by Joona Kiiski
parent ec36b8dea9
commit d8b3ad2208
1 changed files with 2 additions and 1 deletions

View 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)