Obviously no problems there with the player vs player one, but for the vs computer one, i want it to do these steps:
Check if in this current turn it can win, if it can win it will go ahead and win. (If true end of move)
If false check if opponent can win next turn, if they can block them. (If true end of move)
If flase determine which place would be the best place to use turn on... end of move
For these to happen i need to check if two out of three boxes are chosen (eg. out of box 1, 2 and 3, two of the boxes are taken) How can I do this?
Note: To check if a box is taken i do this:
If (btn1 = "O") OR (btn1 = "X")
If there isn't a way does that mean I'm going to have to go over every single combination of boxes? 'Cause that sounds like a complete pain in the ass.
Thanks in advance.
This post has been edited by PixelBit: 05 December 2011 - 09:14 AM