Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_x_o_referee solution in Uncategorized category for Xs and Os Referee by Jon_Red
def checkio(g:list)->str:
r=range(len(g))
g.extend([''.join([g[x][i]for x in r])for i in r])
g.extend([''.join(g[i][i]for i in r),''.join(g[i][2-i]for i in r)])
return'X'if'XXX'in g else'O'if'OOO'in g else'D'
April 23, 2020