mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Increase see prune depth
This seems good at short TC controls. After 10000 games at 20+0.05 ELO: 9.56 +-6.8 (95%) LOS: 100.0% Total: 10000 W: 1949 L: 1674 D: 6377 Testing at long TC and regression testing is still ongoing. So this is a bit speculative commit and could be reverted in the future. Also re-testing at long TC the SEE pruning in PV nodes seems less effective (perhaps even a regression, but still ongoing) so disabled for now. bench: 4968764
This commit is contained in:
parent
db322e6a63
commit
10429dd616
1 changed files with 5 additions and 5 deletions
|
@ -852,14 +852,14 @@ split_point_start: // At split points actual search starts from here
|
||||||
newDepth = depth - ONE_PLY + ext;
|
newDepth = depth - ONE_PLY + ext;
|
||||||
|
|
||||||
// Step 13. Futility pruning (is omitted in PV nodes)
|
// Step 13. Futility pruning (is omitted in PV nodes)
|
||||||
if ( !captureOrPromotion
|
if ( !PvNode
|
||||||
|
&& !captureOrPromotion
|
||||||
&& !inCheck
|
&& !inCheck
|
||||||
&& !dangerous
|
&& !dangerous
|
||||||
&& move != ttMove)
|
&& move != ttMove)
|
||||||
{
|
{
|
||||||
// Move count based pruning
|
// Move count based pruning
|
||||||
if ( !PvNode
|
if ( depth < 16 * ONE_PLY
|
||||||
&& depth < 16 * ONE_PLY
|
|
||||||
&& moveCount >= FutilityMoveCounts[depth]
|
&& moveCount >= FutilityMoveCounts[depth]
|
||||||
&& (!threatMove || !refutes(pos, move, threatMove)))
|
&& (!threatMove || !refutes(pos, move, threatMove)))
|
||||||
{
|
{
|
||||||
|
@ -876,7 +876,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
futilityValue = ss->staticEval + ss->evalMargin + futility_margin(predictedDepth, moveCount)
|
futilityValue = ss->staticEval + ss->evalMargin + futility_margin(predictedDepth, moveCount)
|
||||||
+ Gain[pos.piece_moved(move)][to_sq(move)];
|
+ Gain[pos.piece_moved(move)][to_sq(move)];
|
||||||
|
|
||||||
if (!PvNode && futilityValue < beta)
|
if (futilityValue < beta)
|
||||||
{
|
{
|
||||||
if (SpNode)
|
if (SpNode)
|
||||||
splitPoint->mutex.lock();
|
splitPoint->mutex.lock();
|
||||||
|
@ -885,7 +885,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prune moves with negative SEE at low depths
|
// Prune moves with negative SEE at low depths
|
||||||
if ( predictedDepth < 2 * ONE_PLY
|
if ( predictedDepth < 3 * ONE_PLY
|
||||||
&& pos.see_sign(move) < 0)
|
&& pos.see_sign(move) < 0)
|
||||||
{
|
{
|
||||||
if (SpNode)
|
if (SpNode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue