LLD - Design — Tic-Tac-Toe Game
What will be the output of this code snippet?
def check_diagonal_win(board):
n = len(board)
if all(board[i][i] == 'O' for i in range(n)):
return True
return False
board = [['O','X','X'],['X','O',''],['X','','O']]
print(check_diagonal_win(board))