优化获胜判定。

This commit is contained in:
unlockable
2023-03-01 20:45:53 +08:00
parent ea34250e91
commit 1006c6038a
3 changed files with 106 additions and 167 deletions

View File

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