BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
chess::notation::EPDPosition Struct Referencefinal

#include <libchess/notation/EPD.hpp>

Collaboration diagram for chess::notation::EPDPosition:

Public Member Functions

auto operator== (const EPDPosition &other) const noexcept -> bool=default

Public Attributes

std::unordered_map< string, string > operations
Position position

(Note that these are not member symbols.)

auto from_epd (std::string_view epdString) -> std::expected< EPDPosition, string >
auto parse_all_epds (std::string_view fileContent) -> std::vector< EPDPosition >
auto to_epd (const EPDPosition &pos) -> string

Detailed Description

A position combined with optional EPD opcodes.

Definition at line 38 of file EPD.hpp.

Member Function Documentation

◆ operator==()

auto chess::notation::EPDPosition::operator== ( const EPDPosition & other) const -> bool=default
nodiscarddefaultnoexcept

Returns true if the two positions have the same Zobrist hash and an identical set of operations.

Member Data Documentation

◆ operations

std::unordered_map<string, string> chess::notation::EPDPosition::operations

This position's EPD operations. Values should not be quoted.

Definition at line 45 of file EPD.hpp.

◆ position

Position chess::notation::EPDPosition::position

The position itself.

Definition at line 40 of file EPD.hpp.


The documentation for this struct was generated from the following file:
  • libchess/include/libchess/notation/EPD.hpp