diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-24 16:53:11 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-24 16:53:11 +0100 |
| commit | af333f9ff1c5e7e31d69f58e4559a14cdcfa4f9d (patch) | |
| tree | 8b827f66189d7791d2f6309e98a28044d7afe699 /README.md | |
| parent | bbbe18df2f07154d8923867c05850a6b148b1931 (diff) | |
Update README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -29,21 +29,21 @@ Load PGN from string: } Various API calls: - pgn.HasTag("Round"); // Check if tag exists - try { - pgn.STRCheck(); // Perform a Seven Tag Roster check - } - catch(...){ - // Handle exceptions - } - std::vector<std::string> tags=pgn.GetTagList(); // Get a list of tags - std::string tagValue=GetTagValue("Date"); // Get the value of a tag + pgn.HasTag("Round"); // Check if tag exists + try { + pgn.STRCheck(); // Perform a Seven Tag Roster check + } + catch(...){ + // Handle exceptions + } + std::vector<std::string> tags=pgn.GetTagList(); // Get a list of tags + std::string tagValue=GetTagValue("Date"); // Get the value of a tag Access to moves: - pgnp::HalfMove *move=pgn.GetMoves(); // Get the tree of half moves - int length=move->GetLength(); // Get the number of half moves in the move MainLine - // Public members: - // move->variations contains variations of the current move - // move->isBlack boolean that says if current half move is for the black side - // Check pgnp.hpp for more infos for other field (comments, count, etc.) + pgnp::HalfMove *move=pgn.GetMoves(); // Get the tree of half moves + int length=move->GetLength(); // Get the number of half moves in the move MainLine + // Public members: + // move->variations contains variations of the current move + // move->isBlack boolean that says if current half move is for the black side + // Check pgnp.hpp for more infos for other field (comments, count, etc.) |
