From 725c504a5fcb4cd516f2ce0d1da29058548d070c Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 16 Dec 2008 16:30:31 +0100 Subject: [PATCH] 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 --- src/search.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2