Login using Social Account
     Continue with GoogleLogin using your credentials
Next we will write a function called next_turn
which simply switches controls. If the human player had moved, it will switch the turn to the AI, and vice versa.
Define the function next_turn
as shown below:
def <<your code goes here>>(turn):
if turn == X:
return O
else:
return X
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...