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 mikra
def checkio(dane):
d = ['X'*3, 'O'*3]
for x in d:
for y in range(3):
if(x == (dane[y][0] + dane[y][1] + dane[y][2])): return x[0]
if(x == (dane[0][y] + dane[1][y] + dane[2][y])): return x[0]
if(x == (dane[0][0] + dane[1][1] + dane[2][2])): return x[0]
if(x == (dane[0][2] + dane[1][1] + dane[2][0])): return x[0]
return 'D'
Dec. 8, 2015
Comments: