def __init__(self, n=5, verbose=False, tolerance=1, width=60):
        """
            n : int
                length of the line to create
            
            verbose : bool
                determine whether you want to see all the machinery output to the console, default False
                
            tolerance : int
                how many H or T flips can you allow in your run, default 1 as in original problem
                however, seems fast at multiples. could be a benefit in this method.
            
        
        """
        self.n = n
        self.verbose = verbose
        self.screen_width = width
        self.tolerance = tolerance
        self.__generate()
        self.toss_map = {1:'H', 0:'T'}
        # some output machinery
        if (not (sys.platform == 'linux2')):windll.Kernel32.GetStdHandle.restype = c_ulong
        if (not (sys.platform == 'linux2')):self.h = windll.Kernel32.GetStdHandle(c_ulong(0xfffffff5))    
        # something for nice look
        self.colour_map = {1: 12, 2: 12, 3: 13, 4: 14, 5: 15, 6: 9, 0:4} # empty cells colour black

            n : int
                length of the line to create
            
            verbose : bool
                determine whether you want to see all the machinery output to the console, default False
                
            tolerance : int
                how many H or T flips can you allow in your run, default 1 as in original problem
                however, seems fast at multiples. could be a benefit in this method.
            
        
        
recipes/Python/578779_Find_largest_run_Heads_or_Tails/recipe-578779.py