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

