summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-03-04 18:57:15 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-03-04 18:57:15 +0100
commitadaec1ba1442d093dd788bb3f7512162257de157 (patch)
treea683f6de6c269bb43ba8a1f9e27f7501161cdb9c
parentb5f647e72a080a9ee7a8a13b0ff11d844aba9e18 (diff)
Debug ChessArbiter::IsBlackTurn()
-rw-r--r--src/ChessArbiter.cpp2
1 files changed, 1 insertions, 1 deletions
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);