aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-06-03 12:34:53 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-06-03 12:34:53 +0200
commit9bc06b941a1499543a51c2c2032042d18596badd (patch)
tree151c5016cfcd79e2ea7aeba50a79a499bbeb2c15 /src/game_tab/HalfMove.hpp
parentd60a8bb5c12d906dce3b0880a39640a3e3f08837 (diff)
Debug duplicated move in games
Diffstat (limited to 'src/game_tab/HalfMove.hpp')
-rw-r--r--src/game_tab/HalfMove.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game_tab/HalfMove.hpp b/src/game_tab/HalfMove.hpp
index 19deb2f..eefee21 100644
--- a/src/game_tab/HalfMove.hpp
+++ b/src/game_tab/HalfMove.hpp
@@ -46,7 +46,13 @@ public:
void SetCapture(char c);
void GetAbsoluteMove(std::string &src,std::string &dst);
void SetAbsoluteMove(const std::string &move_absolute);
-
+ /**
+ * @brief Search if current move (move or its variations)
+ * contains a specific fen (usefull to not add moves that already exist)
+ * @param fen
+ * @return HalfMove* the move if found or nullptr
+ */
+ HalfMove* GetCurrentMoveWithFEN(const std::string fen);
/**
* @brief Build current move
* Verify and play all the moves in the game