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 dimafopf
def checkio(x):
x = ''.join(x)
win = ['012','345','678','036','147','258','048','246']
for player in ['X', 'O']:
for combo in win:
if all(x[int(i)] == player for i in combo):
return player
return 'D'
June 12, 2016