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 Types

using Variation = std::vector<Move>

Public Attributes

string comment
moves::Move move
std::vector< NAGnags
std::vector< Variationvariations

Detailed Description

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

Definition at line 93 of file PGN.hpp.

Member Typedef Documentation

◆ Variation

A variation is simply a nested list of moves.

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 100 of file PGN.hpp.

◆ move

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

The move.

Definition at line 95 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.

See the nags namespace for some useful NAG constants.

Definition at line 111 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 120 of file PGN.hpp.


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