BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
chess::board::shifts Namespace Reference

Enumerations

enum class  Color

Functions

constexpr auto north (Bitboard board) noexcept -> Bitboard
constexpr auto south (Bitboard board) noexcept -> Bitboard
constexpr auto east (Bitboard board) noexcept -> Bitboard
constexpr auto west (Bitboard board) noexcept -> Bitboard
constexpr auto northeast (Bitboard board) noexcept -> Bitboard
constexpr auto northwest (Bitboard board) noexcept -> Bitboard
constexpr auto southeast (Bitboard board) noexcept -> Bitboard
constexpr auto southwest (Bitboard board) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_forward (Bitboard board) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_backward (Bitboard board) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_capture_east (Bitboard board) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_capture_west (Bitboard board) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_inv_capture_east (Bitboard board) noexcept -> Bitboard
template<Color Side>
constexpr auto pawn_inv_capture_west (Bitboard board) noexcept -> Bitboard

Detailed Description

This namespace contains bitboard shifting algorithms.

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.