stellar

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

queen.hpp (334B)


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