BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
PieceTypes.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <expected>
#include <format>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for PieceTypes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::formatter< chess::pieces::Type >

Namespaces

namespace  chess
namespace  chess::pieces

Enumerations

enum class  chess::pieces::Type : std::uint_fast8_t {
  chess::pieces::Type::Pawn , chess::pieces::Type::Knight , chess::pieces::Type::Bishop , chess::pieces::Type::Rook ,
  chess::pieces::Type::Queen , chess::pieces::Type::King
}

Functions

auto chess::pieces::from_string (std::string_view text) -> std::expected< Type, std::string >
constexpr auto chess::pieces::to_char (Type type, bool uppercase=true) -> char

Detailed Description

This file defines some constants for encoding information about the various piece types.

Definition in file PieceTypes.hpp.