aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-24 21:03:30 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-24 21:03:30 +0100
commite817ac6bed46737839b592b4308c6d525d70aa2d (patch)
tree276749dbe6017a6052dd6985e15ee7610a49ec0e /README.md
parentbdd879586efd906e10f07663e99b20027f7bb8ad (diff)
Improve PGNP API
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9273c6a..2a50b63 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,8 @@ Various API calls:
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
+ pgnp::HalfMove *move=new pgnp::HalfMove();
+ pgn.GetMoves(move); // Get the tree of half moves (do not forget to call "delete move")
int length=move->GetLength(); // Get the number of half moves in the move MainLine
// Public members:
// move->variations contains variations of the current move