mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Remove rank limitation for MinorBehindPawn
This is a functional simplification. It seems like the rank restriction for MinorBehindPawn can be removed. STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 61195 W: 13404 L: 13360 D: 34431 http://tests.stockfishchess.org/tests/view/5b47e6f00ebc5978f4be3fc0 LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 31701 W: 5367 L: 5264 D: 21070 http://tests.stockfishchess.org/tests/view/5b48a2cb0ebc5978f4be4769 Bench: 4938702
This commit is contained in:
parent
d2d4e85f25
commit
a6fa6a9e92
1 changed files with 2 additions and 3 deletions
|
@ -337,9 +337,8 @@ namespace {
|
||||||
else if (bb &= b & ~pos.pieces(Us))
|
else if (bb &= b & ~pos.pieces(Us))
|
||||||
score += Outpost[Pt == BISHOP][bool(attackedBy[Us][PAWN] & bb)];
|
score += Outpost[Pt == BISHOP][bool(attackedBy[Us][PAWN] & bb)];
|
||||||
|
|
||||||
// Bonus when behind a pawn
|
// Knight and Bishop bonus for being right behind a pawn
|
||||||
if ( relative_rank(Us, s) < RANK_5
|
if (shift<Down>(pos.pieces(PAWN)) & s)
|
||||||
&& (pos.pieces(PAWN) & (s + pawn_push(Us))))
|
|
||||||
score += MinorBehindPawn;
|
score += MinorBehindPawn;
|
||||||
|
|
||||||
// Penalty if the piece is far from the king
|
// Penalty if the piece is far from the king
|
||||||
|
|
Loading…
Add table
Reference in a new issue