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
my labels IBOutlets are:
xOrOBox1
xOrOBox2
xOrOBox3
xOrOBox4
xOrOBox5
xOrOBox6
xOrOBox7
xOrOBox8
xOrOBox9