well I personally don't like the clear screen but it's not my program so I can live with it.
The part I really don't like is having to type a number and enter in order to continue.
New problem that didn't exist before... at line 324
I'm not sure why but if I type a letter such as 'a" the program goes into a loop and i can't play anymore.
1 2 3 4 5 6 7 8
|
cout << "Press any key to continue!" << endl;
cin >> carryOn;
if (isalnum(carryOn))
{
system("cls");
}
|
I did test putting in all ones for the column and that is working.
I'll try and get on in a hour and give some advise on testing for a winner.
So far what I came up with is you only have to test the column or row after the 4th play.
you only need to check the diagonal after the 1st players 6th turn.
next you have to determine the column and row for the last piece played.
you test the whole column for 4 together and the whole row.
The diagonal is giving me a bit of trouble thinking about, since if you play the 4th piece on row 1, 2, 3, or 5, 6 or 7 you only have to check the diagonal in one direction.