26#include <unordered_map>
33using std::string_view;
69 string_view epdString)
70 -> std::expected<EPDPosition, string>;
79 string_view fileContent)
80 -> std::vector<EPDPosition>;
115 inline constexpr string_view
Comment {
"c0" };
127 inline constexpr string_view
DrawClaim {
"draw_claim" };
130 inline constexpr string_view
DrawOffer {
"draw_offer" };
136 inline constexpr string_view
EcoCode {
"eco" };
148 inline constexpr string_view
NicCode {
"nic" };
151 inline constexpr string_view
NoOp {
"noop" };
auto from_epd(string_view epdString) -> std::expected< EPDPosition, string >
auto to_epd(const EPDPosition &pos) -> string
auto parse_all_epds(string_view fileContent) -> std::vector< EPDPosition >
constexpr string_view DrawOffer
constexpr string_view EcoCode
constexpr string_view HalfmoveClock
constexpr string_view PositionID
constexpr string_view BestMove
constexpr string_view FullmoveNumber
constexpr string_view DirectMate
constexpr string_view AvoidMove
constexpr string_view CentipawnEvaluation
constexpr string_view SuppliedMove
constexpr string_view Comment
constexpr string_view Resignation
constexpr string_view PredictedVariation
constexpr string_view AnalysisCountDepth
constexpr string_view PredictedMove
constexpr string_view AnalysisCountSeconds
constexpr string_view DrawReject
constexpr string_view DrawAccept
constexpr string_view AnalysisCountNodes
constexpr string_view RepetitionCount
constexpr string_view DrawClaim
constexpr string_view NoOp
constexpr string_view NicCode
void refresh_default_operations()
std::unordered_map< string, string > operations
auto operator==(const EPDPosition &other) const noexcept -> bool=default