© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
29 replies
Freez

❔ TicTacToe Minimax isnt working properly

Hello ive been trying to make a tictactoe game where the player plays against an AI that uses the minimax algorithm but the bot is making suboptimal moves and even after surfing the web i am confused as to why..
the methods i use to determine a move for the bot are
GetMove(); Minimax(); Eval()
GetMove(); Minimax(); Eval()

im attaching the whole code as a file
message.txt9.62KB
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

MiniMax for TicTacToe
C#CC# / help
4w ago
TicTacToe Game not working
C#CC# / help
2y ago
Code isnt working
C#CC# / help
12mo ago
Trigger isnt working
C#CC# / help
16mo ago