summaryrefslogtreecommitdiff
path: root/src/ChessArbiter.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-26 22:01:22 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-26 22:01:22 +0100
commit3ba7bd82d255c555aec3882f897be471fdb69a8d (patch)
treea76cae0e8b8c1c40c4f66a8a5bbb580a98ee7fcc /src/ChessArbiter.hpp
parentdd4574691a862548a7b7341a529bded347718068 (diff)
Support for promotiongit add -A
Diffstat (limited to 'src/ChessArbiter.hpp')
-rw-r--r--src/ChessArbiter.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChessArbiter.hpp b/src/ChessArbiter.hpp
index 19a4ba1..d63ab06 100644
--- a/src/ChessArbiter.hpp
+++ b/src/ChessArbiter.hpp
@@ -44,7 +44,7 @@ public:
/// @brief Check if a side is in check
bool IsCheck(bool);
/// @brief Play a move (return false if it's illegal)
- bool Play(std::string);
+ bool Play(std::string, char promote='Q');
/// @brief Check if a square is attacked by a particular player
bool IsAttacked(std::string, bool);
/// @brief Get the serialized board
@@ -70,5 +70,6 @@ public:
bool IsDraw();
bool WasEnPassant();
std::string ParseSAN(std::string SANMove);
+ char ParseSANPromotion(std::string SANMove);
};
} // namespace chessarbiter