1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

add answer to question

This commit is contained in:
Thorsten
2016-01-31 21:42:22 +01:00
parent 3ab9f2f738
commit f51a34028f

View File

@@ -52,6 +52,9 @@ def end_question():
win_msg = '{} scores with {:.2f}%'.format(winner, score)
lose_msg = 'nobody scores.'
the_answer = get_questions()[get_current_question(quizcfg)+1]
lines.append('Answer to the question: {}'.format(the_answer))
if score >= 50.0:
lines.append(win_msg)
else: