mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Restore behaviour after count<ALL_PIECES> fix
Because pos.count<ALL_PIECES>(Us) was always zero, rewrite the formula as if this would still be the case. bench: 8510004
This commit is contained in:
parent
97015afce8
commit
35ea39bed2
1 changed files with 1 additions and 3 deletions
|
@ -878,9 +878,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||
ebonus -= ebonus / 4;
|
||||
}
|
||||
|
||||
// Increase the bonus if we have more non-pawn pieces
|
||||
if (pos.count<ALL_PIECES>( Us) - pos.count<PAWN>( Us) >
|
||||
pos.count<ALL_PIECES>(Them) - pos.count<PAWN>(Them))
|
||||
if (pos.count<PAWN>(Us) < pos.count<PAWN>(Them))
|
||||
ebonus += ebonus / 4;
|
||||
|
||||
score += make_score(mbonus, ebonus);
|
||||
|
|
Loading…
Add table
Reference in a new issue