From 3ba7bd82d255c555aec3882f897be471fdb69a8d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 26 Dec 2022 22:01:22 +0100 Subject: Support for promotiongit add -A --- src/ChessArbiter.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ChessArbiter.hpp') 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 -- cgit v1.2.3