Fixed it :). Took about a week haha. but finally. I redone my validation method so that it searches through the entire array, then it finds the map of x's and O's and returns the value that it...
Type: Posts; User: steel55677
Fixed it :). Took about a week haha. but finally. I redone my validation method so that it searches through the entire array, then it finds the map of x's and O's and returns the value that it...
Oh! The previous post was about comparing Reference to a String and I accidently used UserMove=="A1" instead of UserMove.equals("A1").
and Okay, I tried using another method
public static...
My apologies, I edited in the original post but I'll say it here as well:
The new problem is that the 'X' by the user will always override the 'O's by the computer. For example, if I place X at...
Now I got a new problem :( can't seem to get my logic around it.
Thank you sir!
I got a new problem. I can't seem to have the validation done on the player. In the game, if I put into the move for the User and the computer already has the move, it'll override it.
I used if...