From fd78f92863361a3b25808f2ca988f820f2d35618 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 23 Jan 2022 20:57:28 +0100 Subject: Create project --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..6b3a8c2 --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +## PGNP: PGN Parser + +PGNP is a Portable Game Notation (PGN) parser. More details about the +PGN specification can be found [here](https://www.chessclub.com/help/PGN-spec). + +# How to use it ? +PGNP can be used as a shared library in your project. +You only need to include the header file and linking the .so file to your +executable. + +# Example +Load PGN from file: + + pgnp::PGN pgn; + try { + pgn.FromFile("pgn.txt"); + } + catch(...){ + // Handle exceptions + } +Load PGN from string: + + pgnp::PGN pgn; + try { + pgn.FromString("YOUR PGN CONTENT HERE"); + } + catch(...){ + // Handle exceptions + } + +// TODO: How to use the PGN object with the parsed data \ No newline at end of file -- cgit v1.2.3