Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Xs and Os Referee by eugene100372
from typing import List
def checkio(g_r: List[str]) -> str:
for line in g_r+[''.join(s) for s in zip(*g_r)]+[g_r[0][0]+g_r[1][1]+g_r[2][2]]+[g_r[0][2]+g_r[1][1]+g_r[2][0]]:
if line=='OOO': return 'O'
elif line=='XXX': return 'X'
return "D"
Oct. 25, 2020
Comments: