From 0584edb107467a294f17a50d063e667f22f4a47b Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 16 Feb 2022 15:18:26 +0100 Subject: Enable to retreive SAN move --- src/ChessArbiter.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ChessArbiter.hpp') diff --git a/src/ChessArbiter.hpp b/src/ChessArbiter.hpp index 09d8295..e5cec69 100644 --- a/src/ChessArbiter.hpp +++ b/src/ChessArbiter.hpp @@ -15,7 +15,7 @@ class ChessArbiter { /// @brief FEN methods used internally void SetFEN(std::string); void SetFEN(FEN); - + std::string SAN,SAN_last; public: ChessArbiter(); void Setup(std::string); @@ -36,6 +36,8 @@ public: bool IsPlayable(); /// @brief Get pieces captures by a player std::string GetCaptures(bool); + /// @brief Get the english SAN format of the last move + std::string GetSAN(); /// @brief List all the legal moves of a player std::vector ListLegalMoves(bool); /// @brief Check if a specific castle is possible by a player -- cgit v1.2.3