Skip to content
Permalink
Browse files

qsearch pruning tweak. Bench: 3161047

  • Loading branch information...
miguel-l committed Jan 6, 2019
1 parent bb843a0 commit 8bb1d81a0b4331c6dd1e536d781f8f1807ec83f5
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/search.cpp
@@ -1345,12 +1345,12 @@ namespace {
// Futility pruning
if ( !inCheck
&& !givesCheck
&& futilityBase > -VALUE_KNOWN_WIN
&& !pos.advanced_pawn_push(move))
&& futilityBase > -VALUE_KNOWN_WIN)
{
assert(type_of(move) != ENPASSANT); // Due to !pos.advanced_pawn_push

futilityValue = futilityBase + PieceValue[EG][pos.piece_on(to_sq(move))];
futilityValue = futilityBase + PieceValue[EG][pos.piece_on(to_sq(move))]
+ QueenValueEg * pos.advanced_pawn_push(move);

if (futilityValue <= alpha)
{

0 comments on commit 8bb1d81

Please sign in to comment.
You can’t perform that action at this time.