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

Namespaces

namespace  utf8

Enumerations

enum class  Color : std::uint_fast8_t { Color::Black , Color::White }
enum class  Type : std::uint_fast8_t {
  Type::Pawn , Type::Knight , Type::Bishop , Type::Rook ,
  Type::Queen , Type::King
}

Functions

auto from_string (std::string_view text) -> std::expected< Type, std::string >
template<Color Side>
constexpr auto other_side () noexcept -> Color
constexpr auto to_char (Type type, bool uppercase=true) -> char

Detailed Description

This namespace contains classes for encoding information about the various chess piece types.