BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
Attacks.hpp File Reference
Include dependency graph for Attacks.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  chess::moves::Bitboard
struct  chess::moves::Pieces

Namespaces

namespace  chess
namespace  chess::moves

Enumerations

enum class  chess::moves::Color

Functions

template<Color Side>
constexpr auto chess::moves::num_squares_attacked (const Pieces &pieces, Bitboard targetSquares, Bitboard enemyPieces, bool includeKing=true) noexcept -> size_t
template<Color Side>
constexpr auto chess::moves::squares_attacked (const Pieces &pieces, Bitboard targetSquares, Bitboard enemyPieces) noexcept -> bool

Detailed Description

This file contains functions for calculating various attack sets.

Definition in file Attacks.hpp.