コード例 #1
0
ファイル: serge.py プロジェクト: thibs911/SergeSlack
def ask_question(ws, question):
    index = 1
    questions = Quizz.all_question()
    ws.send(new_message(questions['q_text'], "C02LLV4HS"))
    while index < 5:
        ws.send(new_message('{} - {}'.format(index, questions['q_options_{}'.format(index)]), "C02LLV4HS"))
        index = index + 1
    return questions['q_correct_option']
コード例 #2
0
 def do_highscore(self, arg):
     Quizz.highscore()
コード例 #3
0
 def do_start(self, arg):
     quizz = Quizz(questions)
     quizz.start()
     quizz.results()
     quizz.correction()
コード例 #4
0
ファイル: cli.py プロジェクト: karineould/scrumProject
 def do_highscore(self, arg):
     Quizz.highscore()
コード例 #5
0
ファイル: cli.py プロジェクト: karineould/scrumProject
 def do_start(self, arg):
     quizz = Quizz(questions)
     quizz.start()
     quizz.results()
     quizz.correction()