选用和黑棋在同一个空间的白圈。
This commit is contained in:
@@ -40,6 +40,6 @@ std::string ChessPiece::show() {
|
|||||||
return "●";
|
return "●";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return "◯";
|
return "○";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ int main() {
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
std::cout << players[nowMovePlayerIndex]->getName() << " ["
|
std::cout << players[nowMovePlayerIndex]->getName() << " ["
|
||||||
<< (players[nowMovePlayerIndex]->getColor() ? "◯White"
|
<< (players[nowMovePlayerIndex]->getColor() ? "○White"
|
||||||
: "●Black")
|
: "●Black")
|
||||||
<< "]: "
|
<< "]: "
|
||||||
<< "Please enter the coordinate of your new chess piece."
|
<< "Please enter the coordinate of your new chess piece."
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ putChessPieceResult Player::setChess(char row, char column) {
|
|||||||
if (this->board->checkWinner(rowCount, columnCount, this->chessType)) {
|
if (this->board->checkWinner(rowCount, columnCount, this->chessType)) {
|
||||||
std::cout << "\n####################\n"
|
std::cout << "\n####################\n"
|
||||||
<< this->playerName << " ["
|
<< this->playerName << " ["
|
||||||
<< (this->getColor() ? "◯White" : "●Black") << "] "
|
<< (this->getColor() ? "○White" : "●Black") << "] "
|
||||||
<< " wins!" << std::endl
|
<< " wins!" << std::endl
|
||||||
<< "####################\n";
|
<< "####################\n";
|
||||||
return win;
|
return win;
|
||||||
|
|||||||
Reference in New Issue
Block a user