cout << "Invalid move ";
player--;
cin.ignore();
cin.get();
}
i = checkwin();
player++;
} while (i == -1);
board();
if (i == 1)
cout << "==>\aPlayer " << --player << " win ";
else
cout << "==>\aGame draw";
cin.ignore();
cin.get();
return 0;
}
//------------------------------------------------------------------------
This is a few lines of the TicTacToe game - Can anyone explain how the below line works?
i = checkwin();
//------------------------------------------------------------------------