From: Marco Costalba Date: Thu, 28 Jan 2010 23:16:00 +0000 (+0100) Subject: Retire captures pruning X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e84488ed6bef17ed3914a272a4a2622a2db44cc9 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 --- diff --git a/src/search.cpp b/src/search.cpp index 16847b3d..abf26734 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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