From 0e5c4b923a64029db0caf247194c3eb3718b2f4e Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 16 Feb 2022 22:24:35 +0100 Subject: Debug capture --- src/ChessArbiter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ChessArbiter.cpp') 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; -- cgit v1.2.3