BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
chess::moves::AttackInfo::Side Struct Referencefinal

#include <libchess/moves/AttackInfo.hpp>

Collaboration diagram for chess::moves::AttackInfo::Side:

Public Member Functions

constexpr auto operator== (const Side &) const noexcept -> bool=default

Public Attributes

Bitboard all
Bitboard bishops
 Squares attacked by bishops.
Bitboard king
 Squares attacked by the king.
Bitboard knights
 Squares attacked by knights.
Bitboard pawns
 Squares attacked by pawns.
Bitboard queens
 Squares attacked by queens.
Bitboard rooks
 Squares attacked by rooks.
Bitboard twice

Detailed Description

The attack sets for one side.

Definition at line 47 of file AttackInfo.hpp.

Member Function Documentation

◆ operator==()

auto chess::moves::AttackInfo::Side::operator== ( const Side & ) const -> bool=default
nodiscardconstexprdefaultnoexcept

Compares two attack sets for equality.

Member Data Documentation

◆ all

Bitboard chess::moves::AttackInfo::Side::all

Squares attacked by any of this side's pieces, including the king.

Definition at line 56 of file AttackInfo.hpp.

◆ bishops

Bitboard chess::moves::AttackInfo::Side::bishops

Squares attacked by bishops.

Definition at line 50 of file AttackInfo.hpp.

◆ king

Bitboard chess::moves::AttackInfo::Side::king

Squares attacked by the king.

Definition at line 53 of file AttackInfo.hpp.

◆ knights

Bitboard chess::moves::AttackInfo::Side::knights

Squares attacked by knights.

Definition at line 49 of file AttackInfo.hpp.

◆ pawns

Bitboard chess::moves::AttackInfo::Side::pawns

Squares attacked by pawns.

Definition at line 48 of file AttackInfo.hpp.

◆ queens

Bitboard chess::moves::AttackInfo::Side::queens

Squares attacked by queens.

Definition at line 52 of file AttackInfo.hpp.

◆ rooks

Bitboard chess::moves::AttackInfo::Side::rooks

Squares attacked by rooks.

Definition at line 51 of file AttackInfo.hpp.

◆ twice

Bitboard chess::moves::AttackInfo::Side::twice

Squares attacked at least twice by this side's pieces, including the king. Two pieces of the same type attacking a square count as two attackers.

Definition at line 61 of file AttackInfo.hpp.


The documentation for this struct was generated from the following file: