summaryrefslogtreecommitdiff
path: root/src/ChessArbiter.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-16 15:18:26 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-16 15:18:26 +0100
commit0584edb107467a294f17a50d063e667f22f4a47b (patch)
tree67e95c79a1fc71562dcf9d65e9f614614154ed74 /src/ChessArbiter.hpp
parent94c2565647d84f31d5ccac0d88717aef29d4a9a1 (diff)
Enable to retreive SAN move
Diffstat (limited to 'src/ChessArbiter.hpp')
-rw-r--r--src/ChessArbiter.hpp4
1 files changed, 3 insertions, 1 deletions
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<std::string> ListLegalMoves(bool);
/// @brief Check if a specific castle is possible by a player