def playertwo(): global Matrix global blank choice = AI.AIPlayerChoice(Matrix) print("AI choose " + str(choice)) if istaken(choice): playertwo() return Matrix[int(choice % SIZE)][int((choice / SIZE))] = 1
def playertwo(): global Matrix global blank #xy = max(min(int(input()),8),0); # #if istaken(xy): # xy = max(min(int(input()),8),0); # print("Please choose a different location on the board, as it is currently occupied."); # playertwo(); # return #Matrix[int(xy % SIZE)][int((xy/SIZE))] = 2; AI.AIPlayerChoice(Matrix)