BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
MoveFormats.hpp File Reference
#include <cstdint>
#include <expected>
#include <libchess/moves/Move.hpp>
#include <string>
#include <string_view>
Include dependency graph for MoveFormats.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  chess
namespace  chess::game
namespace  chess::notation

Enumerations

enum class  chess::notation::MoveFormat : std::uint_least8_t { chess::notation::MoveFormat::Algebraic , chess::notation::MoveFormat::ICCF , chess::notation::MoveFormat::UCI }

Functions

auto chess::notation::format_move (MoveFormat format, const Position &position, Move move, bool algPieceTypeAsUTF8=false) -> std::string
auto chess::notation::parse_move (MoveFormat format, const Position &position, std::string_view string) -> std::expected< Move, std::string >

Detailed Description

This file provides an abstraction for formatting moves using any of the available notation types.

Definition in file MoveFormats.hpp.