File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -708,6 +708,7 @@ Value Search::Worker::search(
708
708
(ss + 2 )->cutoffCnt = 0 ;
709
709
Square prevSq = ((ss - 1 )->currentMove ).is_ok () ? ((ss - 1 )->currentMove ).to_sq () : SQ_NONE;
710
710
ss->statScore = 0 ;
711
+ ss->isPvNode = PvNode;
711
712
712
713
// Step 4. Transposition table lookup
713
714
excludedMove = ss->excludedMove ;
@@ -1281,8 +1282,9 @@ Value Search::Worker::search(
1281
1282
// std::clamp has been replaced by a more robust implementation.
1282
1283
1283
1284
1284
- Depth d = std::max (
1285
- 1 , std::min (newDepth - r / 1024 , newDepth + !allNode + (PvNode && !bestMove)));
1285
+ Depth d = std::max (1 , std::min (newDepth - r / 1024 ,
1286
+ newDepth + !allNode + (PvNode && !bestMove)))
1287
+ + (!cutNode && (ss - 1 )->isPvNode && moveCount < 8 );
1286
1288
1287
1289
ss->reduction = newDepth - d;
1288
1290
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ struct Stack {
76
76
int cutoffCnt;
77
77
int reduction;
78
78
bool isTTMove;
79
+ bool isPvNode;
79
80
};
80
81
81
82
You can’t perform that action at this time.
0 commit comments