I have rewritten my tic tac toe console game using a 2d array. I'm having trouble making it work though.
Line 48 to 93 checks to see if the players move is valid, but for some reason unknown to me, it will find all the if statements false, and go to the else. I'm not really sure what to do or why its doing this. I've tried a few google searches but I'm not really sure what to search for.
I used 'for loops' to check it without using more 'if statements'. The first 2 loops check the rows and colums, while the 4 if statements (before the grid check) check for the diagonal wins.