diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-16 22:24:35 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-16 22:24:35 +0100 |
| commit | 0e5c4b923a64029db0caf247194c3eb3718b2f4e (patch) | |
| tree | 4ae81ca5e2ef2cdbe9e34f220ee2ddbb993d984f | |
| parent | 640d882099af0f7c13dc5e102943bb06c2df5400 (diff) | |
Debug capture
| -rw-r--r-- | src/ChessArbiter.cpp | 3 | ||||
| -rw-r--r-- | src/ChessArbiter.hpp | 2 |
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(); |
