mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Exclude queen from Rook Contact Check computation
In ei.attackedBy, Queen does not x-ray through Rook, but the Rook does X-ray through the Queen. So most of the rook contact checks supported by queen are, in fact, Queen Contact Checks and they are already scored separately. Bench: 7762189 Resolves #338
This commit is contained in:
parent
6c040c821a
commit
078625e333
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ namespace {
|
|||
{
|
||||
// ...and then remove squares not supported by another enemy piece
|
||||
b &= ( ei.attackedBy[Them][PAWN] | ei.attackedBy[Them][KNIGHT]
|
||||
| ei.attackedBy[Them][BISHOP] | ei.attackedBy[Them][QUEEN]);
|
||||
| ei.attackedBy[Them][BISHOP]);
|
||||
|
||||
if (b)
|
||||
attackUnits += RookContactCheck * popcount<Max15>(b);
|
||||
|
|
Loading…
Add table
Reference in a new issue