From 3c604f48adedd162f858dd1e23f6aaff0cc4b27a Mon Sep 17 00:00:00 2001 From: unlockable Date: Tue, 7 Mar 2023 16:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E7=94=A8=E5=92=8C=E9=BB=91=E6=A3=8B?= =?UTF-8?q?=E5=9C=A8=E5=90=8C=E4=B8=80=E4=B8=AA=E7=A9=BA=E9=97=B4=E7=9A=84?= =?UTF-8?q?=E7=99=BD=E5=9C=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OOP/FiveInARow/chessPiece.cpp | 2 +- OOP/FiveInARow/main.cpp | 2 +- OOP/FiveInARow/player.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OOP/FiveInARow/chessPiece.cpp b/OOP/FiveInARow/chessPiece.cpp index 10bd90e..dd045a7 100644 --- a/OOP/FiveInARow/chessPiece.cpp +++ b/OOP/FiveInARow/chessPiece.cpp @@ -40,6 +40,6 @@ std::string ChessPiece::show() { return "●"; } else { - return "◯"; + return "○"; } } \ No newline at end of file diff --git a/OOP/FiveInARow/main.cpp b/OOP/FiveInARow/main.cpp index 26479e2..2479a78 100644 --- a/OOP/FiveInARow/main.cpp +++ b/OOP/FiveInARow/main.cpp @@ -42,7 +42,7 @@ int main() { do { std::cout << players[nowMovePlayerIndex]->getName() << " [" - << (players[nowMovePlayerIndex]->getColor() ? "◯White" + << (players[nowMovePlayerIndex]->getColor() ? "○White" : "●Black") << "]: " << "Please enter the coordinate of your new chess piece." diff --git a/OOP/FiveInARow/player.cpp b/OOP/FiveInARow/player.cpp index a53e265..ad238ff 100644 --- a/OOP/FiveInARow/player.cpp +++ b/OOP/FiveInARow/player.cpp @@ -47,7 +47,7 @@ putChessPieceResult Player::setChess(char row, char column) { if (this->board->checkWinner(rowCount, columnCount, this->chessType)) { std::cout << "\n####################\n" << this->playerName << " [" - << (this->getColor() ? "◯White" : "●Black") << "] " + << (this->getColor() ? "○White" : "●Black") << "] " << " wins!" << std::endl << "####################\n"; return win;