From: Marco Costalba Date: Tue, 16 Dec 2008 15:30:31 +0000 (+0100) Subject: qsearch: take in account enpassant in futility formula X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=725c504a5fcb4cd516f2ce0d1da29058548d070c qsearch: take in account enpassant in futility formula Should not change anything at ELO level but it is the correct thing to do. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 71aea553..72bf6e81 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1487,6 +1487,7 @@ namespace { Value futilityValue = staticValue + Max(pos.midgame_value_of_piece_on(move_to(move)), pos.endgame_value_of_piece_on(move_to(move))) + + (move_is_ep(move) ? PawnValueEndgame : Value(0)) + FutilityMargin0 + ei.futilityMargin;