mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
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>
This commit is contained in:
parent
bfbfc24d07
commit
725c504a5f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue