def x_win_condition(board_list):
    """Condition for 'X' to win."""
    return (
        (board_list[1] == "X" and board_list[2] == "X" and board_list[3] == "X")
        or (board_list[1] == "X" and board_list[4] == "X" and board_list[7] == "X")
        or (board_list[1] == "X" and board_list[5] == "X" and board_list[9] == "X")
        or (board_list[2] == "X" and board_list[5] == "X" and board_list[8] == "X")
        or (board_list[3] == "X" and board_list[6] == "X" and board_list[9] == "X")
        or (board_list[3] == "X" and board_list[5] == "X" and board_list[7] == "X")
        or (board_list[4] == "X" and board_list[5] == "X" and board_list[6] == "X")
        or (board_list[7] == "X" and board_list[8] == "X" and board_list[9] == "X")
    )