diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-23 20:57:28 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-23 20:57:28 +0100 |
| commit | fd78f92863361a3b25808f2ca988f820f2d35618 (patch) | |
| tree | 1133469354ae661a9d2f8f40f5009b0ed5c5886f /README.md | |
Create project
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 31 |
1 files changed, 31 insertions, 0 deletions
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 |
