1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 11:39:15 +00:00

Fix indentation in qsearch.

https://github.com/official-stockfish/Stockfish/pull/4630

No functional change.
This commit is contained in:
Joerg Oster 2023-06-20 10:40:31 +02:00 committed by Joost VandeVondele
parent a68a1c1154
commit 6eaa1c3ecd

View file

@ -1555,23 +1555,23 @@ moves_loop: // When in check, search starts here
bestValue = std::max(bestValue, futilityBase); bestValue = std::max(bestValue, futilityBase);
continue; continue;
} }
} }
// We prune after the second quiet check evasion move, where being 'in check' is // We prune after the second quiet check evasion move, where being 'in check' is
// implicitly checked through the counter, and being a 'quiet move' apart from // implicitly checked through the counter, and being a 'quiet move' apart from
// being a tt move is assumed after an increment because captures are pushed ahead. // being a tt move is assumed after an increment because captures are pushed ahead.
if (quietCheckEvasions > 1) if (quietCheckEvasions > 1)
break; break;
// Continuation history based pruning (~3 Elo) // Continuation history based pruning (~3 Elo)
if ( !capture if ( !capture
&& (*contHist[0])[pos.moved_piece(move)][to_sq(move)] < 0 && (*contHist[0])[pos.moved_piece(move)][to_sq(move)] < 0
&& (*contHist[1])[pos.moved_piece(move)][to_sq(move)] < 0) && (*contHist[1])[pos.moved_piece(move)][to_sq(move)] < 0)
continue; continue;
// Do not search moves with bad enough SEE values (~5 Elo) // Do not search moves with bad enough SEE values (~5 Elo)
if (!pos.see_ge(move, Value(-95))) if (!pos.see_ge(move, Value(-95)))
continue; continue;
} }
// Speculative prefetch as early as possible // Speculative prefetch as early as possible