Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: All possibles moves in 1set solution in Clear category for Xs and Os Referee by Stensen
def checkio(G):
S = {*G, *[''.join(i) for i in zip(*G)],
G[0][0]+G[1][1]+G[2][2], G[2][0]+G[1][1]+G[0][2]}
return "X" if "XXX" in S else "O" if "OOO" in S else "D"
Nov. 19, 2020
Comments: