Permalink
Browse files

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 <mcostalba@gmail.com>
  • Loading branch information...
1 parent bfbfc24 commit 725c504a5fcb4cd516f2ce0d1da29058548d070c @mcostalba committed Dec 16, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/search.cpp
View
1 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;

0 comments on commit 725c504

Please sign in to comment.