Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Slice solution in Creative category for Xs and Os Referee by torumatsuda1978
def checkio(r):
r = ''.join(r)
li = [r[:3], r[3:6], r[6:9], r[::3], r[1::3], r[2::3], r[::4], r[2:8:2]]
if 'XXX' in li: return 'X'
elif 'OOO' in li: return 'O'
else: return 'D'
April 8, 2018