Tic Tac Toe AI
Hello, I have been working on a tic tac toe program and my problem is I want to build bots for it. I have already built one, but I just used a ton of if statements which doesn't seem like the most efficient way. I think their has to be a better way so if you could explain how I could make a simple bot for my game I would really appreciate it.
I don't think you will need to see my code for this, but if you do I will happily post it, but for now just incase anyone wants to know my button variables are:
b1, b2, b3, b4, b5, b6, b7, b8, and b9
The squares for the game should be in an array. No need for individual names.
"I have a program that doesn't work but I do have a String variable called name. Hope you can help."
Originally Posted by anthropamorphic
You really have no idea what relevant information means.