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

#include <libchess/notation/PGN.hpp>

Collaboration diagram for chess::notation::GameRecord::Variation:

Public Attributes

std::vector< Move > moves
Position startingPosition
size_t variationID { 0uz }

Detailed Description

This struct represents a variation, or a line of moves.

Definition at line 102 of file PGN.hpp.

Member Data Documentation

◆ moves

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

The moves in this variation.

Definition at line 104 of file PGN.hpp.

◆ startingPosition

Position chess::notation::GameRecord::Variation::startingPosition

The starting position of this variation.

Definition at line 107 of file PGN.hpp.

◆ variationID

size_t chess::notation::GameRecord::Variation::variationID { 0uz }

Each variation in a game is assigned a unique ID.

Definition at line 110 of file PGN.hpp.


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