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

Clean-up code indentation in qsearch

closes https://github.com/official-stockfish/Stockfish/pull/4615

No functional change
This commit is contained in:
Stéphane Nicolet 2023-06-12 23:26:42 +02:00 committed by Joost VandeVondele
parent ece90bca9c
commit 92c949e12e

View file

@ -1481,10 +1481,11 @@ moves_loop: // When in check, search starts here
bestValue = ttValue;
}
else
{
// In case of null move search use previous static eval with a different sign
ss->staticEval = bestValue =
(ss-1)->currentMove != MOVE_NULL ? evaluate(pos)
ss->staticEval = bestValue = (ss-1)->currentMove != MOVE_NULL ? evaluate(pos)
: -(ss-1)->staticEval;
}
// Stand pat. Return immediately if static value is at least beta
if (bestValue >= beta)
@ -1561,8 +1562,9 @@ moves_loop: // When in check, search starts here
}
}
// We prune after 2nd quiet check evasion where being 'in check' is implicitly checked through the counter
// and being a 'quiet' apart from being a tt move is assumed after an increment because captures are pushed ahead.
// 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
// being a tt move is assumed after an increment because captures are pushed ahead.
if (quietCheckEvasions > 1)
break;