I'm trying to make it so the user has a choice between a 1 and 2 player game in a tic-tac-toe game i made....
It worked fine when it was just 1-player against the computer... to make it 2-player I made a function that lets the user select the number of players which returns a char value '1' or '2' ( askPlayer() ).
If the char == '1' enter one loop, if char =='2' enter the other loop.... However it just seems to skip out the loops altogether....
The main code is below... Any help would be great.... Thanks.
This code, is why it is not behaving as expected. You are assigned the char the numerical value 1, one, ie binary 00000001 as opposed to the letter that is '1'.