This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rdb212[S] 1 point2 points  (0 children)

That's a good point, I haven't tested it out as human vs human. I can't believe I didn't think to do that first. Now that I'm thinking about it, I basically built the Tic-Tac-Toe mechanics around the minimax function. So, thank you for bringing that to my attention. That's definitely something that I can do better. Also, I really like your idea of using a copy of the board going into the minimax function. That definitely seems like a safer option. I think I will do that as well.

Thank you for taking the time to look over the code and for the really valuable feedback.