Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Visualize! solution in Clear category for Xs and Os Referee by veky
def checkio(result):
[[a,b,c],
[d,e,f],
[g,h,i]] = result
lines = a+b+c, d+e+f, g+h+i, a+d+g, b+e+h, c+f+i, a+e+i, c+e+g
return 'X' if 'XXX' in lines else 'O' if 'OOO' in lines else 'D'
Aug. 16, 2016
Comments: