aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.hpp
diff options
context:
space:
mode:
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