LLD - Design — Tic-Tac-Toe Game
Identify the error in this win condition checking function:
def check_column_win(board):
n = len(board)
for col in range(n):
if all(board[col][row] == 'X' for row in range(n)):
return True
return False