@@ -158,7 +158,7 @@ namespace {
158
158
void update_continuation_histories (Stack* ss, Piece pc, Square to, int bonus);
159
159
void update_quiet_stats (const Position& pos, Stack* ss, Move move, int bonus);
160
160
void update_all_stats (const Position& pos, Stack* ss, Move bestMove, Value bestValue, Value beta, Square prevSq,
161
- Move* quietsSearched, int quietCount, Move* capturesSearched, int captureCount, Depth depth, bool pastPV );
161
+ Move* quietsSearched, int quietCount, Move* capturesSearched, int captureCount, Depth depth);
162
162
163
163
// perft() is our utility to verify move generation. All the leaf nodes up
164
164
// to the given depth are generated and counted, and the sum is returned.
@@ -713,7 +713,7 @@ namespace {
713
713
if (ttValue >= beta)
714
714
{
715
715
if (!pos.capture_or_promotion (ttMove))
716
- update_quiet_stats (pos, ss, ttMove, stat_bonus (depth + (!PvNode && ttPv) ));
716
+ update_quiet_stats (pos, ss, ttMove, stat_bonus (depth));
717
717
718
718
// Extra penalty for early quiet moves of the previous ply
719
719
if ((ss-1 )->moveCount <= 2 && !priorCapture)
@@ -722,7 +722,7 @@ namespace {
722
722
// Penalty for a quiet ttMove that fails low
723
723
else if (!pos.capture_or_promotion (ttMove))
724
724
{
725
- int penalty = -stat_bonus (depth + (!PvNode && ttPv) );
725
+ int penalty = -stat_bonus (depth);
726
726
thisThread->mainHistory [us][from_to (ttMove)] << penalty;
727
727
update_continuation_histories (ss, pos.moved_piece (ttMove), to_sq (ttMove), penalty);
728
728
}
@@ -1028,11 +1028,7 @@ namespace {
1028
1028
continue ;
1029
1029
}
1030
1030
else if (!pos.see_ge (move, Value (-194 ) * depth)) // (~25 Elo)
1031
- {
1032
- if (captureOrPromotion && captureCount < 32 )
1033
- capturesSearched[captureCount++] = move;
1034
1031
continue ;
1035
- }
1036
1032
}
1037
1033
1038
1034
// Step 14. Extensions (~75 Elo)
@@ -1326,7 +1322,7 @@ namespace {
1326
1322
1327
1323
else if (bestMove)
1328
1324
update_all_stats (pos, ss, bestMove, bestValue, beta, prevSq,
1329
- quietsSearched, quietCount, capturesSearched, captureCount, depth, (!PvNode && ttPv) );
1325
+ quietsSearched, quietCount, capturesSearched, captureCount, depth);
1330
1326
1331
1327
// Bonus for prior countermove that caused the fail low
1332
1328
else if ( (depth >= 3 || PvNode)
@@ -1602,7 +1598,7 @@ namespace {
1602
1598
// update_all_stats() updates stats at the end of search() when a bestMove is found
1603
1599
1604
1600
void update_all_stats (const Position& pos, Stack* ss, Move bestMove, Value bestValue, Value beta, Square prevSq,
1605
- Move* quietsSearched, int quietCount, Move* capturesSearched, int captureCount, Depth depth, bool pastPV ) {
1601
+ Move* quietsSearched, int quietCount, Move* capturesSearched, int captureCount, Depth depth) {
1606
1602
1607
1603
int bonus1, bonus2;
1608
1604
Color us = pos.side_to_move ();
@@ -1612,8 +1608,8 @@ namespace {
1612
1608
PieceType captured = type_of (pos.piece_on (to_sq (bestMove)));
1613
1609
1614
1610
bonus1 = stat_bonus (depth + 1 );
1615
- bonus2 = pastPV || bestValue > beta + PawnValueMg ? bonus1 // larger bonus
1616
- : stat_bonus (depth); // smaller bonus
1611
+ bonus2 = bestValue > beta + PawnValueMg ? bonus1 // larger bonus
1612
+ : stat_bonus (depth); // smaller bonus
1617
1613
1618
1614
if (!pos.capture_or_promotion (bestMove))
1619
1615
{
0 commit comments