Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Geedium authored Jun 16, 2020
1 parent dc28e40 commit 785d4c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ int main(int argc, char* argv[])
{
if (gametable[i][j] != 'X' && gametable[i][j] != 'O')
{
gametable[i][j] = cc;
gametable[i][j] = !Connected ? 'X' : cc;

if (isYourTurn)
{
Expand Down Expand Up @@ -312,7 +312,6 @@ int main(int argc, char* argv[])
}
}

// DIAG. CHECK
if (gametable[0][2] == 'O' && gametable[1][1] == 'O' && gametable[2][0] == 'O')
{
std::cout << "Player lost." << std::endl;
Expand Down

0 comments on commit 785d4c5

Please sign in to comment.