summaryrefslogtreecommitdiff
path: root/src/ChessArbiter.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-10 16:18:23 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-10 16:18:23 +0100
commit6f48becb9186a399e3a4dddb778570e7057752c7 (patch)
tree64d8e53f3c1823ab496de1cfe532429a50842216 /src/ChessArbiter.hpp
parent9e8b8d630cdf7dfafdd0a37bb095b4e4afe10478 (diff)
Improve pawn promotion API
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 c29dd32..aec0342 100644
--- a/src/ChessArbiter.hpp
+++ b/src/ChessArbiter.hpp
@@ -33,7 +33,7 @@ class ChessArbiter {
void SetFEN(const FEN &fen);
std::string SAN, SAN_last;
char capture;
- bool was_enpassant;
+ bool was_enpassant, was_pawn_promotion;
public:
ChessArbiter();
@@ -69,6 +69,7 @@ public:
bool IsDrawByRepetitions();
bool IsDraw();
bool WasEnPassant();
+ bool WasPawnPromotion();
std::string ParseSAN(const std::string &SANMove);
char ParseSANPromotion(const std::string &SANMove);
};