Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
regex one-liner solution in Creative category for Xs and Os Referee by juestr
checkio = lambda g: max((__import__('re')).match(r'(?:(?:...)*(X|O)\1\1)|(?:.*(X|O)(?:..\2..\2))|(?:(X|O)(?:...\3...\3))|(?:..(X|O)(?:.\4.\4))|()', ''.join(g)).groups() + ('D',), key=bool)
April 16, 2019
Comments: