def guess(self, question, possibleAnswers): ''' Determine the correct answer to this question. The 0th Possible Answer should be the true correct one. ''' print "Question: " + question self.totalQuestions += 1 finalAnswer = Wizard(question, possibleAnswers).guess() print "All Results:" for prob in finalAnswer.probabilities: print prob success = "" if possibleAnswers[0] == finalAnswer.getValue(): self.correctAnswers += 1 success = "Right!" else: success = "WRONG!" print 'guess: %s, correct answer: %s, Wizard is %s\n' % (finalAnswer.getValue(), possibleAnswers[0], success)