mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Increase passed bonus for having more pieces
Passed both short TC: LLR: 2.95 (-2.94,2.94) [-1.50,4.50] Total: 36463 W: 7575 L: 7365 D: 21523 And long TC: LLR: 2.97 (-2.94,2.94) [0.00,6.00] Total: 2953 W: 564 L: 446 D: 1943 bench: 3846852
This commit is contained in:
parent
27f2ce8f6e
commit
fc17d0de77
1 changed files with 7 additions and 0 deletions
|
@ -872,9 +872,16 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||||
{
|
{
|
||||||
if (pos.non_pawn_material(Them) <= KnightValueMg)
|
if (pos.non_pawn_material(Them) <= KnightValueMg)
|
||||||
ebonus += ebonus / 4;
|
ebonus += ebonus / 4;
|
||||||
|
|
||||||
else if (pos.pieces(Them, ROOK, QUEEN))
|
else if (pos.pieces(Them, ROOK, QUEEN))
|
||||||
ebonus -= ebonus / 4;
|
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))
|
||||||
|
ebonus += ebonus / 4;
|
||||||
|
|
||||||
score += make_score(mbonus, ebonus);
|
score += make_score(mbonus, ebonus);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue