From d354e1886c738616ffe9b29396dcd7c66006ae28 Mon Sep 17 00:00:00 2001 From: unlockable Date: Tue, 7 Mar 2023 15:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E9=BB=91=E6=A3=8B=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E7=AC=A6=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 701f1e1..10bd90e 100644 --- a/OOP/FiveInARow/chessPiece.cpp +++ b/OOP/FiveInARow/chessPiece.cpp @@ -37,7 +37,7 @@ std::string ChessPiece::show() { return "X"; } if (this->color == BLACK) { - return "⬤"; + return "●"; } else { return "◯"; diff --git a/OOP/FiveInARow/main.cpp b/OOP/FiveInARow/main.cpp index f038ce1..26479e2 100644 --- a/OOP/FiveInARow/main.cpp +++ b/OOP/FiveInARow/main.cpp @@ -43,7 +43,7 @@ int main() { do { std::cout << players[nowMovePlayerIndex]->getName() << " [" << (players[nowMovePlayerIndex]->getColor() ? "◯White" - : "⬤Black") + : "●Black") << "]: " << "Please enter the coordinate of your new chess piece." << std::endl; diff --git a/OOP/FiveInARow/player.cpp b/OOP/FiveInARow/player.cpp index c8d7b40..a53e265 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;