using namespace std;
int printboard(char array,char alph,int x=0,int y=0)
//Tic Tac Toe?
c = printboard(array,alph,x,y);
cout<<"\nPlayer "<<round<<". Turn "<<turn<<"/"<<c<<". Enter(1-9): ";
cout<<"\nInvalid input\n\n";goto retry;
cout<<"\nInvalid Maneuver. Location occupied by "<<array[quest]<<"\n\n";turn--;
This is my way of coding tic tac toe. As you can see, it is missing a win condition.
I could just add a if statement for every win condition, but then i would not learn anything.
Is it possible for anyone to give me some advices on how to make a win condition, without having to write a if statement for every possible win?
Edit: I have started using hungarian notation. Unfortunately that was after i made this code, so i appologize if it's useless to read.