I am using the code.org AppLab, and trying to make a game of Tic-Tac-Toe. Currently I have it so the computer will randomly choose a location from the available places, but I am trying to make it more difficult. What would be the best way to have the computer make more intelligent decisions when choosing moves?
I tried using a series of else if statements to check each square, but that didn't work continuously.