mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Remove a redundant check in passed pawn eval
When first condition is met then second one is always true. Spotted by Ralph Stoesser. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
aad8c82cf6
commit
4d170725ab
1 changed files with 1 additions and 2 deletions
|
@ -861,8 +861,7 @@ namespace {
|
||||||
// value if the other side has a rook or queen.
|
// value if the other side has a rook or queen.
|
||||||
if (square_file(s) == FILE_A || square_file(s) == FILE_H)
|
if (square_file(s) == FILE_A || square_file(s) == FILE_H)
|
||||||
{
|
{
|
||||||
if ( pos.non_pawn_material(Them) <= KnightValueMidgame
|
if (pos.non_pawn_material(Them) <= KnightValueMidgame)
|
||||||
&& pos.piece_count(Them, KNIGHT) <= 1)
|
|
||||||
ebonus += ebonus / 4;
|
ebonus += ebonus / 4;
|
||||||
else if (pos.pieces(ROOK, QUEEN, Them))
|
else if (pos.pieces(ROOK, QUEEN, Them))
|
||||||
ebonus -= ebonus / 4;
|
ebonus -= ebonus / 4;
|
||||||
|
|
Loading…
Add table
Reference in a new issue