aboutsummaryrefslogtreecommitdiff
path: root/src/PGN.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-15 08:26:49 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-15 08:26:49 +0100
commit52c2fd4521d33616514dc2a43ad1ee432ce16275 (patch)
treeb8a59aeab25285a4547d393e58675981cc212960 /src/PGN.hpp
parentef75681956ae842cbf1b2b357374aa34e3361448 (diff)
Debug PGN parsing from a string. Add the ParseSANMoves() function. Add a new tests set
Diffstat (limited to 'src/PGN.hpp')
-rw-r--r--src/PGN.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/PGN.hpp b/src/PGN.hpp
index d313f91..d7bc429 100644
--- a/src/PGN.hpp
+++ b/src/PGN.hpp
@@ -102,4 +102,12 @@ struct STRCheckFailed : public std::exception {
}
};
+/**
+ * @brief Parse a simple sequence of SAN moves
+ *
+ * @param sequence e.g: 1.e4 e5 2.Nf3
+ * @param moves Returned moves sequence
+ */
+void ParseSANMoves(const std::string &sequence,HalfMove *moves);
+
} // namespace pgnp