mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Remove non-functional term in isShuffling
closes https://github.com/official-stockfish/Stockfish/pull/6462 No functional change
This commit is contained in:
+3
-4
@@ -141,9 +141,8 @@ void update_all_stats(const Position& pos,
|
||||
Move TTMove,
|
||||
int moveCount);
|
||||
|
||||
bool isShuffling(Move move, Stack* const ss, const Position& pos) {
|
||||
if (type_of(pos.moved_piece(move)) == PAWN || pos.capture_stage(move)
|
||||
|| pos.rule50_count() < 10)
|
||||
bool is_shuffling(Move move, Stack* const ss, const Position& pos) {
|
||||
if (pos.capture_stage(move) || pos.rule50_count() < 10)
|
||||
return false;
|
||||
if (pos.state()->pliesFromNull <= 6 || ss->ply < 20)
|
||||
return false;
|
||||
@@ -1119,7 +1118,7 @@ moves_loop: // When in check, search starts here
|
||||
// and lower extension margins scale well.
|
||||
if (!rootNode && move == ttData.move && !excludedMove && depth >= 6 + ss->ttPv
|
||||
&& is_valid(ttData.value) && !is_decisive(ttData.value) && (ttData.bound & BOUND_LOWER)
|
||||
&& ttData.depth >= depth - 3 && !isShuffling(move, ss, pos))
|
||||
&& ttData.depth >= depth - 3 && !is_shuffling(move, ss, pos))
|
||||
{
|
||||
Value singularBeta = ttData.value - (53 + 75 * (ss->ttPv && !PvNode)) * depth / 60;
|
||||
Depth singularDepth = newDepth / 2;
|
||||
|
||||
Reference in New Issue
Block a user