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

#include <libchess/notation/PGN.hpp>

Collaboration diagram for chess::notation::GameRecord::Move:

Public Attributes

string comment
moves::Move move
std::vector< NAG > nags
std::vector< Variation > variations

Detailed Description

Records a game move alongside an optional comment, NAG annotations, and possible variations.

Definition at line 114 of file PGN.hpp.

Member Data Documentation

◆ comment

string chess::notation::GameRecord::Move::comment

The comment string associated with this move. Empty if this move has no comment.

Definition at line 121 of file PGN.hpp.

◆ move

moves::Move chess::notation::GameRecord::Move::move

The move.

Definition at line 116 of file PGN.hpp.

◆ nags

std::vector<NAG> chess::notation::GameRecord::Move::nags

If this move was annotated with one or more Numerical Annotation Glyph, this contains the numerical codes that followed each $ character in the original PGN.

For example, for a move annotated !, this would be 1, for a ? this would be 2, etc.

Definition at line 130 of file PGN.hpp.

◆ variations

std::vector<Variation> chess::notation::GameRecord::Move::variations

If this move has alternate possible continuations, they are stored here. The first move in each of these variations is the move that could've been played instead of move.

Definition at line 136 of file PGN.hpp.


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