优化获胜判定。
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
int main() {
|
||||
ChessBoard *aBoard;
|
||||
std::cout << std::numeric_limits<std::streamsize>::max() << std::endl;
|
||||
{
|
||||
int boardSize = 0;
|
||||
while (true) {
|
||||
@@ -90,6 +89,7 @@ int main() {
|
||||
else {
|
||||
aBoard->show();
|
||||
char input;
|
||||
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
|
||||
do {
|
||||
std::cout << "Reset for another round? (y/n) ";
|
||||
input = getchar();
|
||||
|
||||
Reference in New Issue
Block a user