mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Fix a skill level problem: Don't allow move pruning at root node
Bench: 8918745 Resolves #231
This commit is contained in:
committed by
Joona Kiiski
parent
ec36b8dea9
commit
d8b3ad2208
@@ -831,7 +831,8 @@ moves_loop: // When in check and at SpNode search starts from here
|
|||||||
newDepth = depth - ONE_PLY + extension;
|
newDepth = depth - ONE_PLY + extension;
|
||||||
|
|
||||||
// Step 13. Pruning at shallow depth
|
// Step 13. Pruning at shallow depth
|
||||||
if ( !captureOrPromotion
|
if ( !RootNode
|
||||||
|
&& !captureOrPromotion
|
||||||
&& !inCheck
|
&& !inCheck
|
||||||
&& !dangerous
|
&& !dangerous
|
||||||
&& bestValue > VALUE_MATED_IN_MAX_PLY)
|
&& bestValue > VALUE_MATED_IN_MAX_PLY)
|
||||||
|
|||||||
Reference in New Issue
Block a user