Hi guys I'm bored and I'm making a quick and simple x and o's console game and I game to a dilemma in c and c++ I could get around this dilemma with the GOTO statement I know it's frowned upon using it even in them languages but that statement would make sense in that case so the problem occurs at line 62 to 66 after this block is finished I would like to loop back to line 56 so the user gets a chance to enter a choice in again if he/she entered an invalid choice in,I'm not sure how I could get around this without a GOTO statement any suggestions ?
I cant believe how much I have changed. I used to think a GOTO was not a problem. I don't believe that any more. I posted a rant saying we should dump OO and just go top-down procedural when I was a new member here
As a pointer, the code in playerOneTurn and playerTwoTurn is almost identical, the only difference being whether it uses an 'X' or an 'O', and whether it talks about player 'One' or 'Two'.
You could turn that into a single method with one or two parameters.