mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
Fix a output bug
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user