Feedback on my Tic Tac Toe

Feedback on my Tic Tac Toe
0

#1

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 :slight_smile:


#2

Hey, looks nice. It does check if you lost (couldn’t win), but it doesn’t show anything when it is a tie.


#3

Yeah i figured it is obvious since the board is full so I didn’t put any message xD


#4

Looks like your minmax implementation is not quite correct (x moves: upper left, lower right, lower left, left middle):


#5

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.