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
void refresh_default_operations ()

Public Attributes

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

(Note that these are not member symbols.)

auto from_epd (string_view epdString) -> std::expected< EPDPosition, string >
auto parse_all_epds (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 39 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.

◆ refresh_default_operations()

void chess::notation::EPDPosition::refresh_default_operations ( )

Refreshes the default move counter operations so that they are in sync with the numeric counters in the position field.

Member Data Documentation

◆ operations

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

This position's EPD operations. Values should not be quoted. See the epd_ops namespace for constants representing names of standard EPD operations.

Definition at line 47 of file EPD.hpp.

◆ position

Position chess::notation::EPDPosition::position

The position itself.

Definition at line 41 of file EPD.hpp.


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