选用和黑棋在同一个空间的白圈。

This commit is contained in:
unlockable
2023-03-07 16:06:20 +08:00
parent d354e1886c
commit 3c604f48ad
3 changed files with 3 additions and 3 deletions

View File

@@ -40,6 +40,6 @@ std::string ChessPiece::show() {
return "";
}
else {
return "";
return "";
}
}

View File

@@ -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."

View File

@@ -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;