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 panaro32
def checkio(b):
l = [list(x) for x in b] + [[x[i] for x in b] for i in range(len(b))]
l += [[x[i] for i,x in enumerate(b)],[x[-i-1] for i,x in enumerate(b)]]
if list("XXX") in l: return "X"
if list("OOO") in l: return "O"
return "D"
May 1, 2014
Comments: