Create project

This commit is contained in:
Loic Guegan 2022-01-23 20:57:28 +01:00
commit fd78f92863
10 changed files with 21790 additions and 0 deletions

31
README.md Normal file
View file

@ -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