Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
str.join(iterable) solution in Clear category for Xs and Os Referee by David_Jones
def checkio(game_result):
lines = game_result
game_result = ''.join(game_result)
lines += [game_result[i::3] for i in range(3)]
lines += [game_result[0::4], game_result[2:8:2]]
for ch in 'OX':
if ch * 3 in lines:
return ch
return 'D'
June 15, 2019
Comments: