stellar

UCI Chess engine written in C++20
git clone git://git.dimitrijedobrota.com/stellar.git
Log | Files | Refs | README | LICENSE

queen.hpp (334B)


0 #ifndef STELLAR_ATTACK_QUEEN_H 1 #define STELLAR_ATTACK_QUEEN_H 2 3 #include "bishop.hpp" 4 #include "rook.hpp" 5 6 namespace attack { 7 namespace queen { 8 9 inline U64 attack(const Square square, U64 occupancy) { 10 return rook::attack(square, occupancy) | bishop::attack(square, occupancy); 11 } 12 13 } // namespace queen 14 } // namespace attack 15 16 #endif