Tic Tac Toe AI

I create a Tic Tac Toe AI in Xcode, and works just find, but it's predictable if discover the pattern. I code it so that it would go in this order unless there is text there already or there is two in row of the enemy 5,3,2,1,4,6,7,8,9. I want it so that is can randomly select one of the the labels to set text too

my labels IBOutlets are:

xOrOBox1
xOrOBox2
xOrOBox3
xOrOBox4
xOrOBox5
xOrOBox6
xOrOBox7
xOrOBox8
xOrOBox9


Answered by JoshCasticTheCoder in 632083022
Don't need to answer, I solved it myself. I used array in way I wasn't thinking at first, but now, it works great. There is no longer a pattern.
Accepted Answer
Don't need to answer, I solved it myself. I used array in way I wasn't thinking at first, but now, it works great. There is no longer a pattern.
Tic Tac Toe AI
 
 
Q