My best/messiest code so far (work in progress)
etian (31)

So as no one knows, for school I've been working on a tic tac toe game and its pretty fun! I tried doing some coding now but I look through all the code and its completely fine but I guess my home wifi is too laggy. :/

You are viewing a single comment. View All
etian (31)

@Highwayman it was smth like this for myother post

void checkwin()
{
for (int g=0;g<3;g++)
test=a[spot];
spot2++;
test2=a[spot];
spot2++;
test3=a[spot]
spot2++;
if (spot2==3)
{
spot2=0;
}
if (test == 'X' && test2 == 'X' && test3 == 'X')
{
cout << "Game over!\nYou won."
}