I have finished my Tic Tac Toe project and I would like some feedback. The AI is using the minimax algorithm, it took me a while to get it working
Feedback on my Tic Tac Toe
Feedback on my Tic Tac Toe
0
BenGitter
#2
Hey, looks nice. It does check if you lost (couldn’t win), but it doesn’t show anything when it is a tie.
Yeah i figured it is obvious since the board is full so I didn’t put any message xD
jenovs
#4
Looks like your minmax implementation is not quite correct (x moves: upper left, lower right, lower left, left middle):
Yeah, i fixed the part about the computer moving after you already win. But i can’t do anything about the computer being beatable, I guess i should have used other heuristic function.