forked from official-stockfish/Stockfish
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k += 5 if the RQ is anywhere on the file. Bench: 4804769
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
383a01b
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.
If the rook queen is in front, we already have
attackedBy[Us][ALL_PIECES] & blockSq
So you are only adding the case where rook/queen is in front of blocksq but does not see it.
383a01b
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.
@Rocky640 Very good point, I'm sorry for overlooking that. Thank you!
I do think it's possible we should have some bonus in that case though... The intervening piece, which prevents our rook/queen from seeing the
blockSq
, may be vulnerable to pressure: we may be able to x-ray defense of the passed pawn.