|
BenBot 1.7.5
A chess engine
|
#include <libchess/moves/AttackInfo.hpp>
Classes | |
| struct | Side |
Public Member Functions | |
| constexpr auto | operator== (const AttackInfo &) const noexcept -> bool=default |
| template<Color C> | |
| constexpr auto | side () const noexcept -> const Side & |
| constexpr auto | side (const Color color) const noexcept -> const Side & |
Public Attributes | |
| Side | black |
| Side | white |
The squares attacked by each side's pieces, broken down by piece type.
These are raw attack sets: squares occupied by friendly pieces are not masked out, so a set bit on a square holding one of our own pieces means that piece is defended. Sliders don't see through other pieces (there are no x-rays).
Definition at line 45 of file AttackInfo.hpp.
|
nodiscardconstexprdefaultnoexcept |
Compares two AttackInfo objects for equality.
|
inlinenodiscardconstexprnoexcept |
Returns the attack sets for the given side.
Definition at line 75 of file AttackInfo.hpp.
|
inlinenodiscardconstexprnoexcept |
Returns the attack sets for the given side.
Definition at line 84 of file AttackInfo.hpp.
| Side chess::moves::AttackInfo::black |
Black's attack sets.
Definition at line 71 of file AttackInfo.hpp.
| Side chess::moves::AttackInfo::white |
White's attack sets.
Definition at line 68 of file AttackInfo.hpp.