Changes
Jump to:
navigation
,
search
← Older edit
Newer edit →
First Rank Attacks
113 bytes added
,
07:55, 10 October 2019
no edit summary
unsigned int file = sq & 7;
unsigned int rkx8 = sq & 56; // rank * 8
occ
unsigned int rankOccX2
= (occ >> rkx8) & 2*63;
// 2 times the inner six bit rank occupancy used as index
U64 attacks = arrFirstRankAttacks64x8[4*
occ
rankOccX2
+ file];
// 8 * rank occupancy + file
return attacks << rkx8;
}
GerdIsenberg
Bureaucrats
,
Administrators
25,161
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
Tools
Special pages
Printable version