Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Regex check paths solution in Creative category for Xs and Os Referee by ale1ster
import re
def checkio(game_result):
s = ''.join(game_result)
ms = '-'.join([el for i in range(0,9,3) for el in [s[i:i+3], s[i//3:9:3], s[0:9:4], s[2:7:2]]])
return (re.findall('(XXX|OOO)', ms) + ['D'])[0][0]
#These "asserts" using only for self-checking and not necessary for auto-testing
May 13, 2014
Comments: