def runfuns(self, w,y,x,numofovers, win, originalscore, orignoovers, wold, yold, dlruns, dlovers, dlwicks, battingfirst):
        """This is to get all functions to run"""
        numberofovers = orignoovers
        #numberofovers = numofovers
        #Cricket = Cricket()
        numberofoversplayed = float(y)
        y = self.numberofballs(y)
        #y = numberofballs(y)
        runsperball = self.scoreperball(x,y)
    #see if they will survive numofovers overs
        alloutearly = self.willsurvive(w,y,numofovers, wold, yold)
        x = int(x)
        numofovers = float(numofovers) -numberofoversplayed
        if alloutearly == 0:
            #take off the number of overs they have already had
            a = self.ifnotout(runsperball,numofovers)
            a = a + x
            #a = a + originalscore
            #a = str(a)
            #resulttext = "Predicted score is", a + originalscore
            resulttext = "Predicted score is "
            resulttext = self.formatresults(resulttext, a, originalscore)
        else:
            b = self.ifallout(runsperball,alloutearly)
            b = b + x
            resulttext = "Predicted score is all out for "
            resulttext = self.formatresults(resulttext, b, originalscore)
            a = self.ifnotout(runsperball, numofovers)
            resulttext2 = "\n" + " However if they do not get out, they will get "
            #resulttext2 = self.formatresults(resulttext2, a, originalscore)
            resulttext2 = self.formatresults(resulttext2, a, originalscore)
            #resulttext2 = self.formatresults(resulttext2, b, originalscore)
            resulttext = resulttext + resulttext2
        if dlovers >20 and battingfirst != 'Not entered':
            dresults = self.duckworthlewis(dlruns, dlovers, dlwicks, numofovers, battingfirst)
            dtest = 'The duckworth lewis score in case of rain would be '
            dtest = self.formatresults(dtest, dresults, 0)
            resulttext = resulttext + "\n" + dtest
        return resulttext
This is to get all functions to run
recipes/Python/334728_Cricket_GUI/recipe-334728.py