From 835be9d63c8f99f5563a6885b7417258d14aeb8f Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Sun, 30 Nov 2025 15:23:34 +0800 Subject: [PATCH] Fix a output bug --- src/core/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Game.cpp b/src/core/Game.cpp index f1381da..9c3c8da 100644 --- a/src/core/Game.cpp +++ b/src/core/Game.cpp @@ -98,7 +98,7 @@ void Game::printBoard() const { } void Game::nextTurn() { - std::cout << "switch to P2\n"; + std::cout << "switch to " << ((m_currentPlayer == PlayerID::P1) ? "P2" : "P1") << "\n"; m_seletedPiece = std::nullopt; m_currentPlayer = (m_currentPlayer == PlayerID::P1) ? PlayerID::P2 : PlayerID::P1; resetOldPieceIDtoComponent();