def __init__(self): self.__status = None self._timer = newPointCalcModule.pointsCalc(2) self._timer.startPoints(2) self.__book = logicPuzzleQuestions.logicPuzzleQuestions() #entire questions = self.__book.dictor() #questions able to extract self.__question = random.choice(questions.keys()) #question self.__answer = questions[self.__question] self.display = 'A door is either true or false. Which door should I take based on their hints?\n' + self.__question self._timer.puzzleDuration()
def __init__(self): self.__status = None self._timer = newPointCalcModule.pointsCalc(0)#POINTS/TIMER MODULE self._timer.startPoints(0) #POINTS/TIMER MODULE num1 = random.randint(0,100) num2 = random.randint(-50,150) self.display = 'Solve: '+ str(num1)+ ' + ' + str(num2) + '/' #full puzzle self.__Msolution = num1 + num2 #store solution self._timer.puzzleDuration()