Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Yo solution in Clear category for Xs and Os Referee by w78Rq
def checkio(game_result):
string_result = ''.join(game_result)
win = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6))
for i in win:
if string_result[i[0]] == string_result[i[1]] == string_result[i[2]] and string_result[i[0]] != '.':
return string_result[i[0]]
return 'D'
Oct. 10, 2018