BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
chess::moves::patterns Namespace Reference

Classes

struct  Bitboard

Enumerations

enum class  Color

Functions

template<Color Side>
constexpr auto pawn_pushes (Bitboard starting) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_double_pushes (Bitboard starting) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_attacks (Bitboard starting) noexcept -> Bitboard
constexpr auto knight (Bitboard starting) noexcept -> Bitboard
constexpr auto bishop (Bitboard starting) noexcept -> Bitboard
constexpr auto rook (Bitboard starting) noexcept -> Bitboard
constexpr auto queen (Bitboard starting) noexcept -> Bitboard
constexpr auto king (Bitboard starting) noexcept -> Bitboard

Detailed Description

This namespace provides functions for generating possible moves for each piece type from a given starting square. These functions are not concerned with captures or blocking pieces, they deal purely with the piece's movement mechanics - i.e., "attacks on an otherwise empty board". The returned move sets do not include the starting square.

Enumeration Type Documentation

◆ Color

enum class chess::pieces::Color : std::uint_fast8_t
strong

This enum identifies the side to move.

Definition at line 29 of file Colors.hpp.