From e817ac6bed46737839b592b4308c6d525d70aa2d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 24 Jan 2022 21:03:30 +0100 Subject: Improve PGNP API --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') 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 -- cgit v1.2.3