Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try the opposite: skip the OnlyPawnDefender bonus
Bench: 3760549
- Loading branch information
Bench: 3760549
798a2b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stéphane, have you tried something like replacing
& shift<Up>(pos.pieces(Us, PAWN))
with
& shift<Up>(pos.pieces(Us, PAWN) | attackedBy[Us][PAWN])
798a2b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I have tried
shift<Up>(pos.pieces(Us, PAWN) | attackedBy2[Us])
but not your version. I will try it, thanks!