From 055410c0e0c1297612ce9677331d012af2226fac Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 12 May 2023 15:29:04 +0200 Subject: Improve doxygen documentation --- src/Openings.hpp | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'src/Openings.hpp') diff --git a/src/Openings.hpp b/src/Openings.hpp index adf05c1..f3dfb6d 100644 --- a/src/Openings.hpp +++ b/src/Openings.hpp @@ -8,14 +8,41 @@ * See: https://github.com/lichess-org/chess-openings */ class Openings { - typedef std::vector MoveList; + /// @brief Loaded tsv data format as a vector of tuples (,,) typedef std::vector> Volume; Volume A,B,C,D,E; + /** + * @brief Search opening name an ECO code based on the given \a moves + * + * @param moves Half moves that you want to search for the opening + * @param name Fill by the method if opening is found + * @param eco Fill by the method if opening is found + */ void SearchOpening(const pgnp::HalfMove *moves,std::string &name, std::string &eco); + /** + * @brief Load a volume using tsv data (see openings.hpp) + * + * @param tsv data to load + * @param vol volume in which the data will be loaded + */ void LoadVolume(const std::string &tsv, Volume *vol); public: + /** + * @brief Guess the opening based on a list of SAN moves (PGN) + * + * @param SANMoves + * @param name + * @param eco + */ void GuessOpening(const std::string &SANMoves, std::string &name, std::string &eco); + /** + * @brief Guess the opening based on a half moves (wrapper around ::SearchOpening) + * + * @param moves + * @param name + * @param eco + */ void GuessOpening(const pgnp::HalfMove *moves, std::string &name, std::string &eco); Openings(); }; \ No newline at end of file -- cgit v1.2.3