Codice: Seleziona tutto
def play():
player1 = ""
player2 = ""
def who_first():
while True:
first = input("Choose a marker:\n> ")
if first == "x" or first == "X":
player1 = "X"
player2 = "O"
print("Player 1 will be X.")
return player1
return player2
break
elif first == "o" or first == "O":
player1 = "O"
player2 = "X"
print("Player 1 will be O.")
return player1
return player2
break
else:
print("\nPlease, choose a valid marker.\n")
continue
play()