© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
Dahyerin

✅ 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.
Human_validation_pic.JPG
Human_validation_pic_2.JPG
HUman_make_move_function.JPG
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Tic tac toe
C#CC# / help
16mo ago
❔ Tic Tac Toe
C#CC# / help
3y ago
Tic Tac Toe Game
C#CC# / help
2y ago
how to code a tic tac toe game
C#CC# / help
4y ago