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 Rush_iam
def checkio(game_result):
for r in game_result + list(zip(*game_result)):
if r.count(r[0]) == 3 and r[0] != ".":
return r[0]
if game_result[0][0] == game_result[1][1] == game_result[2][2] != "." or \
game_result[0][2] == game_result[1][1] == game_result[2][0] != ".":
return game_result[1][1]
return "D"
Oct. 20, 2020