// Check and react in case of a winner
switch( CheckForWinner( spaces ) )
{
case 1:
cout << endl << endl << "Player 1 has won!!!";
break;
case 2:
cout << endl << endl << "Player 2 has won!!!";
break;
default:
break;
}
That should check to see if anyone has won across all rows, but it doesnt seem like the function is working. What could be the problem?
I can't log onto this site without seeing 2 or 3 tic-tac-toe questions this week. There must be an assignment due or something for a course that references this site a lot.