aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-24 16:53:11 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-24 16:53:11 +0100
commitaf333f9ff1c5e7e31d69f58e4559a14cdcfa4f9d (patch)
tree8b827f66189d7791d2f6309e98a28044d7afe699
parentbbbe18df2f07154d8923867c05850a6b148b1931 (diff)
Update README.md
-rw-r--r--README.md30
1 files changed, 15 insertions, 15 deletions
diff --git a/README.md b/README.md
index a3d4557..9273c6a 100644
--- a/README.md
+++ b/README.md
@@ -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.)