Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
only 8 possibilities solution in Uncategorized category for Xs and Os Referee by lxf42
from typing import List
def checkio(game_result: List[str]) -> str:
game_result = game_result.copy()
game_result.extend([''.join([game_result[l][c] for l in range(3)]) for c in range(3)])
game_result.append(''.join([game_result[i][i] for i in range(3)]))
game_result.append(''.join([game_result[2-i][i] for i in range(3)]))
print(game_result)
if 'OOO' in game_result:
return 'O'
elif 'XXX' in game_result:
return 'X'
return "D"
March 2, 2022