✅ Tic-Tac-Toe validation outputting wrong values
I have a validation loop that checks whether a box is appropriate or not. Whilst the validator checks and throws an error if the square is already occupied, requesting another input from the user (or AI). When it gets an valid input, it will output the incorrect one instead of the new one. In the case for the AI, it outputs all of the incorrect variations it tried when it receives a valid one, which results in it overriding anything and everything there.
I have included the two pics of the validation method and the human Make move function in hopes this will help. Thanks.
I have included the two pics of the validation method and the human Make move function in hopes this will help. Thanks.