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

Classes

struct  Bitboard
struct  CastlingRights
struct  Move
struct  Pieces
struct  Position
struct  Square
struct  ThreefoldChecker

Typedefs

using PieceType = pieces::Type

Enumerations

enum class  Color
enum class  Color
enum class  File
enum class  File
enum class  Rank
enum class  Result : std::uint_least8_t { Result::Draw , Result::WhiteWon , Result::BlackWon }

Functions

auto after_move (const Position &starting, const Move move) -> Position
auto after_move (const Position &starting, Move move) -> Position
auto after_null_move (const Position &starting) -> Position
auto after_null_move (const Position &starting) -> Position
auto flipped (const Position &starting) -> Position
auto flipped (const Position &starting) -> Position
auto print_ascii (const Position &position) -> std::string
auto print_utf8 (const Position &position) -> std::string

Detailed Description

This namespace contains classes for modeling the state of a game of chess.

Typedef Documentation

◆ PieceType

Definition at line 34 of file CastlingRights.hpp.

Enumeration Type Documentation

◆ Color [1/2]

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.

◆ Color [2/2]

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.

◆ File [1/2]

enum class chess::board::File : BitboardIndex
strong

This enum describes the files of the chess board.

See also
Rank

Definition at line 36 of file File.hpp.

◆ File [2/2]

enum class chess::board::File : BitboardIndex
strong

This enum describes the files of the chess board.

See also
Rank

Definition at line 36 of file File.hpp.

◆ Rank

enum class chess::board::Rank : BitboardIndex
strong

This enum describes the ranks of the chessboard.

See also
File

Definition at line 40 of file Rank.hpp.

Function Documentation

◆ after_move()

auto chess::game::after_move ( const Position & starting,
const Move move ) -> Position
related

Definition at line 540 of file Position.hpp.

◆ after_null_move()

auto chess::game::after_null_move ( const Position & starting) -> Position
related

Definition at line 551 of file Position.hpp.

◆ flipped()

auto chess::game::flipped ( const Position & starting) -> Position
related

Definition at line 560 of file Position.hpp.