stellar

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

queen.hpp (352B)


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