mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Fix a silly unstoppable eval bug
The logic is broken for black side because we get more bonus for pawn in 7th rank than for pawn in 2nd rank! Spotted by Reuven Peleg bench:3884409
This commit is contained in:
parent
77b5ee0117
commit
d50b33cacd
1 changed files with 1 additions and 1 deletions
|
@ -906,7 +906,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||
if (!b || pos.non_pawn_material(~us))
|
||||
return SCORE_ZERO;
|
||||
|
||||
return Unstoppable * int(relative_rank(WHITE, frontmost_sq(us, b)));
|
||||
return Unstoppable * int(relative_rank(us, frontmost_sq(us, b)));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue