From adaec1ba1442d093dd788bb3f7512162257de157 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 4 Mar 2022 18:57:15 +0100 Subject: [PATCH] Debug ChessArbiter::IsBlackTurn() --- src/ChessArbiter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp index 59afaf7..67dfb36 100644 --- a/src/ChessArbiter.cpp +++ b/src/ChessArbiter.cpp @@ -30,7 +30,7 @@ std::string ChessArbiter::GetFEN() { return (FENParser::Serialize(fen)); } std::string ChessArbiter::GetBoard() { return (fen.board); } -bool ChessArbiter::IsBlackTurn() { return (fen.player == 'b'); } +bool ChessArbiter::IsBlackTurn() { return (fen.player); } bool ChessArbiter::IsCheck(bool isBlack) { std::string kingloc = board.GetKingLocation(isBlack);