mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Retire captures pruning
Futility captures alone does not seem an improvment. Perhaps is a combination of stand pat + futility that is winning, so revert for now and continue testing starting from a standard base until we find the correct receipe. After 999 games at 1+0 Mod vs Orig +231 0506 -201 +10 ELO Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
252844e899
commit
e84488ed6b
1 changed files with 0 additions and 30 deletions
|
@ -1629,36 +1629,6 @@ namespace {
|
|||
// Update current move
|
||||
movesSearched[moveCount++] = ss[ply].currentMove = move;
|
||||
|
||||
// Futility pruning for captures
|
||||
// FIXME: test disabling 'Futility pruning for captures'
|
||||
// FIXME: test with 'newDepth < RazorDepth'
|
||||
Color them = opposite_color(pos.side_to_move());
|
||||
|
||||
if ( !isCheck
|
||||
&& newDepth < SelectiveDepth
|
||||
&& !dangerous
|
||||
&& pos.move_is_capture(move)
|
||||
&& !pos.move_is_check(move, ci)
|
||||
&& !move_is_promotion(move)
|
||||
&& move != ttMove
|
||||
&& !move_is_ep(move)
|
||||
&& (pos.type_of_piece_on(move_to(move)) != PAWN || !pos.pawn_is_passed(them, move_to(move)))) // Do not prune passed pawn captures
|
||||
{
|
||||
int preFutilityValueMargin = 0;
|
||||
|
||||
if (newDepth >= OnePly)
|
||||
preFutilityValueMargin = FutilityMargins[int(newDepth)];
|
||||
|
||||
Value futilityCaptureValue = ss[ply].eval + pos.endgame_value_of_piece_on(move_to(move)) + preFutilityValueMargin + ei.futilityMargin + 90;
|
||||
|
||||
if (futilityCaptureValue < beta)
|
||||
{
|
||||
if (futilityCaptureValue > bestValue)
|
||||
bestValue = futilityCaptureValue;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Futility pruning
|
||||
if ( !isCheck
|
||||
&& !dangerous
|
||||
|
|
Loading…
Add table
Reference in a new issue