mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Further reduce
This commit is contained in:
parent
63136b8c68
commit
9fbd8f4f72
1 changed files with 2 additions and 5 deletions
|
@ -23,10 +23,7 @@ void Bitboards::init() {
|
|||
for (Rank r = RANK_1; r < RANK_8; ++r)
|
||||
InFrontBB[WHITE][r] = ~(InFrontBB[BLACK][r + 1] = InFrontBB[BLACK][r] | RankBB[r]);
|
||||
|
||||
for (Color c = WHITE; c <= BLACK; ++c)
|
||||
for (Square s = SQ_A1; s <= SQ_H8; ++s)
|
||||
{
|
||||
PawnAttackSpan[c][s] = InFrontBB[c][rank_of(s)] & AdjacentFilesBB[file_of(s)];
|
||||
}
|
||||
|
||||
PawnAttackSpan[0][0] = InFrontBB[0][0] & AdjacentFilesBB[7];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue