Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Slicy solution in Speedy category for Xs and Os Referee by misterjmf
def checkio(gr):
st = ''.join(gr)
for c in 'X','O':
if any(c*3 in (gr[i], st[i::3]) for i in range(3)): return c
if c*3 in (st[0::4], st[2:-1:2]): return c
return "D"
#These "asserts" using only for self-checking and not necessary for auto-testing
May 24, 2014
Comments: