Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Xs and Os Referee by Vesagran
def checkio(game_result):
result = [game_result[n] for n in range(3)] + [game_result[0][n]+game_result[1][n]+game_result[2][n] for n in range(3)] + [game_result[0][0]+game_result[1][1]+game_result[2][2]] + [game_result[0][2]+game_result[1][1] + game_result[2][0]]
if "XXX" in result:
return "X"
if "OOO" in result:
return "O"
else:
return "D"
Dec. 10, 2014
Comments: