summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-16 22:24:35 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-16 22:24:35 +0100
commit0e5c4b923a64029db0caf247194c3eb3718b2f4e (patch)
tree4ae81ca5e2ef2cdbe9e34f220ee2ddbb993d984f
parent640d882099af0f7c13dc5e102943bb06c2df5400 (diff)
Debug capture
-rw-r--r--src/ChessArbiter.cpp3
-rw-r--r--src/ChessArbiter.hpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp
index 2b34ef6..1c04bed 100644
--- a/src/ChessArbiter.cpp
+++ b/src/ChessArbiter.cpp
@@ -3,7 +3,7 @@
namespace chessarbiter {
ChessArbiter::ChessArbiter()
: wPawn(1), wRook(5), wKnight(3), wBishop(3), wQueen(9), wKing(0), SAN(""),
- capture(' '), capture_last(' ') {}
+ capture(' '){}
void ChessArbiter::Setup(std::string fen) {
positions.clear();
@@ -47,6 +47,7 @@ bool ChessArbiter::Play(std::string move) {
FEN newFen = fen;
INIT_BACKUP();
SAN = "";
+ capture=' ';
if (IsCapture) {
capture = board.GetPieceAt(dst).piece;
diff --git a/src/ChessArbiter.hpp b/src/ChessArbiter.hpp
index 541253c..6d31073 100644
--- a/src/ChessArbiter.hpp
+++ b/src/ChessArbiter.hpp
@@ -30,7 +30,7 @@ class ChessArbiter {
void SetFEN(std::string);
void SetFEN(FEN);
std::string SAN, SAN_last;
- char capture, capture_last;
+ char capture;
public:
ChessArbiter();